new testcase that should have been added long ago.
authorChris Lattner <sabre@nondot.org>
Tue, 7 Mar 2006 22:33:00 +0000 (22:33 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 7 Mar 2006 22:33:00 +0000 (22:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26601 91177308-0d34-0410-b5e6-96231b3b80d8

test/CFrontend/attribute_constructor.c [new file with mode: 0644]

diff --git a/test/CFrontend/attribute_constructor.c b/test/CFrontend/attribute_constructor.c
new file mode 100644 (file)
index 0000000..b2f7c9b
--- /dev/null
@@ -0,0 +1,6 @@
+// RUN: %llvmgcc %s -c -o - | llvm-dis | grep llvm.global_ctors
+
+void foo() __attribute__((constructor));
+void foo() {
+  bar();
+}