summaryrefslogtreecommitdiffstats
path: root/test/Parser/pragma-pack.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Parser/pragma-pack.c')
-rw-r--r--test/Parser/pragma-pack.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/Parser/pragma-pack.c b/test/Parser/pragma-pack.c
index 84778cd..172a332 100644
--- a/test/Parser/pragma-pack.c
+++ b/test/Parser/pragma-pack.c
@@ -30,3 +30,17 @@
_Pragma("pack(push)")
/* expected-warning {{expected integer or identifier in '#pragma pack'}}*/ _Pragma("pack(push,)")
+
+// PR13580
+struct S
+{
+ char a[3];
+#pragma pack(1)
+ struct T
+ {
+ char b;
+ int c;
+ } d;
+#pragma pack()
+ int e;
+};
OpenPOWER on IntegriCloud