summaryrefslogtreecommitdiffstats
path: root/clang/test/PCH/suspicious-pragma-pack.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/PCH/suspicious-pragma-pack.c')
-rw-r--r--clang/test/PCH/suspicious-pragma-pack.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/PCH/suspicious-pragma-pack.c b/clang/test/PCH/suspicious-pragma-pack.c
new file mode 100644
index 00000000000..01a66af34bb
--- /dev/null
+++ b/clang/test/PCH/suspicious-pragma-pack.c
@@ -0,0 +1,8 @@
+// RUN: %clang_cc1 -triple x86_64-apple-darwin10 %s -verify -emit-pch -o %t
+// RUN: %clang_cc1 -triple x86_64-apple-darwin10 %s -verify -include-pch %t
+
+#ifndef HEADER
+#define HEADER
+#pragma pack (push, 1)
+#endif
+// expected-warning@-2 {{unterminated '#pragma pack (push, ...)' at end of file}}
OpenPOWER on IntegriCloud