summaryrefslogtreecommitdiffstats
path: root/test/PCH/empty-def-fwd-struct.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/PCH/empty-def-fwd-struct.h')
-rw-r--r--test/PCH/empty-def-fwd-struct.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/PCH/empty-def-fwd-struct.h b/test/PCH/empty-def-fwd-struct.h
new file mode 100644
index 0000000000..dda9827ac8
--- /dev/null
+++ b/test/PCH/empty-def-fwd-struct.h
@@ -0,0 +1,12 @@
+// RUN: %clang_cc1 -emit-pch -x c++-header %s -std=c++14 -o %t.pch
+// RUN: %clang_cc1 -emit-llvm-only -x c++ /dev/null -std=c++14 -include-pch %t.pch -o %t.o
+struct FVector;
+struct FVector {};
+struct FBox {
+ FVector Min;
+ FBox(int);
+};
+namespace {
+FBox InvalidBoundingBox(0);
+}
+