summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/pragma-pack-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/pragma-pack-1.c')
-rw-r--r--clang/test/CodeGen/pragma-pack-1.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/CodeGen/pragma-pack-1.c b/clang/test/CodeGen/pragma-pack-1.c
new file mode 100644
index 0000000..c30a62a
--- /dev/null
+++ b/clang/test/CodeGen/pragma-pack-1.c
@@ -0,0 +1,7 @@
+// RUN: %clang_cc1 -emit-llvm -o - %s
+
+// PR4610
+#pragma pack(4)
+struct ref {
+ struct ref *next;
+} refs;