]> granicus.if.org Git - clang/commitdiff
Test case for r126127 and r126141. Radar 9012638.
authorStuart Hastings <stuart@apple.com>
Mon, 21 Feb 2011 21:08:21 +0000 (21:08 +0000)
committerStuart Hastings <stuart@apple.com>
Mon, 21 Feb 2011 21:08:21 +0000 (21:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126142 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/attribute-section-data-common.c [new file with mode: 0644]

diff --git a/test/CodeGen/attribute-section-data-common.c b/test/CodeGen/attribute-section-data-common.c
new file mode 100644 (file)
index 0000000..2393bfb
--- /dev/null
@@ -0,0 +1,5 @@
+// RUN: %clang -S %s -o /dev/null
+struct rtxc_snapshot {
+  int a, b, c, d;
+};
+__attribute__ ((section("__DATA, __common"))) struct rtxc_snapshot rtxc_log_A[4];