aboutsummaryrefslogtreecommitdiff
path: root/test/CFrontend/attribute_constructor.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-03-07 22:33:00 +0000
committerChris Lattner <sabre@nondot.org>2006-03-07 22:33:00 +0000
commit41dd39ee015f1d28fb36ae28d30485a130c8d9bc (patch)
treeb577b7bfdef3df24b5620f4aa6f68709340eb598 /test/CFrontend/attribute_constructor.c
parent7809811e4ed3c2462efa327cef0464b9844baea2 (diff)
new testcase that should have been added long ago.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26601 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CFrontend/attribute_constructor.c')
-rw-r--r--test/CFrontend/attribute_constructor.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CFrontend/attribute_constructor.c b/test/CFrontend/attribute_constructor.c
new file mode 100644
index 0000000000..b2f7c9b19f
--- /dev/null
+++ b/test/CFrontend/attribute_constructor.c
@@ -0,0 +1,6 @@
+// RUN: %llvmgcc %s -c -o - | llvm-dis | grep llvm.global_ctors
+
+void foo() __attribute__((constructor));
+void foo() {
+ bar();
+}