new testcase
authorChris Lattner <sabre@nondot.org>
Mon, 3 Mar 2008 21:59:00 +0000 (21:59 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 3 Mar 2008 21:59:00 +0000 (21:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47858 91177308-0d34-0410-b5e6-96231b3b80d8

test/CFrontend/2008-03-03-CtorAttrType.c [new file with mode: 0644]

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