summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/Inputs/pragma-pack2.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Sema/Inputs/pragma-pack2.h')
-rw-r--r--clang/test/Sema/Inputs/pragma-pack2.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/Sema/Inputs/pragma-pack2.h b/clang/test/Sema/Inputs/pragma-pack2.h
new file mode 100644
index 00000000000..a41621544d7
--- /dev/null
+++ b/clang/test/Sema/Inputs/pragma-pack2.h
@@ -0,0 +1,8 @@
+
+#ifndef NO_RECORD_2
+struct S { int x; };
+#endif
+
+#ifdef SET_SECOND_HEADER
+#pragma pack (8) // expected-note 2 {{previous '#pragma pack' directive that modifies alignment is here}}
+#endif
OpenPOWER on IntegriCloud