view clang/test/PCH/struct.h @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children
line wrap: on
line source

// 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;
};