summaryrefslogtreecommitdiff
path: root/test/CodeGen/attribute-section-data-common.c
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2011-02-26 22:09:03 +0000
committerDimitry Andric <dim@FreeBSD.org>2011-02-26 22:09:03 +0000
commitc3b054d250cdca485c71845089c316e10610ebad (patch)
treeabae0246ec9156cc1a7cbb947b2b0dfe95fa3189 /test/CodeGen/attribute-section-data-common.c
parentbca07a4524feb4edec581062d631a13116320a24 (diff)
Diffstat (limited to 'test/CodeGen/attribute-section-data-common.c')
-rw-r--r--test/CodeGen/attribute-section-data-common.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/CodeGen/attribute-section-data-common.c b/test/CodeGen/attribute-section-data-common.c
new file mode 100644
index 0000000000000..2393bfb0329b5
--- /dev/null
+++ b/test/CodeGen/attribute-section-data-common.c
@@ -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];