summaryrefslogtreecommitdiff
path: root/clang/test/PCH/struct.h
blob: 2ffdd4aea5864752a1eed65893477077fb68dc07 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Used with the struct.c test

struct Point {
  float x, y, z;
};

struct Point2 {
  float xValue, yValue, zValue;
};

struct Fun;

struct Fun *fun;

struct Fun {
  int is_ptr : 1;

  union {
    void *ptr;
    int  *integer;
  };
};

struct Fun2;
struct Fun2 *fun2;

struct S {
  struct Nested { int x, y; } nest;
};