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