summaryrefslogtreecommitdiffstats
path: root/clang/test/PCH/struct.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-04-13 21:20:57 +0000
committerDouglas Gregor <dgregor@apple.com>2009-04-13 21:20:57 +0000
commit183671e2d260930a8c43abc177f80f68cab041c0 (patch)
tree1e7ba3d7fad59387ee4d8072d8131c554a04e7e0 /clang/test/PCH/struct.h
parent4184ac847f91dc7a8644ad6c5a3e389923117eb3 (diff)
downloadbcm5719-llvm-183671e2d260930a8c43abc177f80f68cab041c0.tar.gz
bcm5719-llvm-183671e2d260930a8c43abc177f80f68cab041c0.zip
PCH support for record decls/types and their fields. Now that we can
handle the definition of __builtin_va_list on x86-64, eliminate the forced -triple in PCH tests to get better coverage. llvm-svn: 68988
Diffstat (limited to 'clang/test/PCH/struct.h')
-rw-r--r--clang/test/PCH/struct.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/clang/test/PCH/struct.h b/clang/test/PCH/struct.h
new file mode 100644
index 00000000000..e3d85abaaeb
--- /dev/null
+++ b/clang/test/PCH/struct.h
@@ -0,0 +1,25 @@
+// 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;
+
+ union {
+ void *ptr;
+ int *integer;
+ };
+};
+
+struct Fun2;
+struct Fun2 *fun2;
OpenPOWER on IntegriCloud