aboutsummaryrefslogtreecommitdiffstats
path: root/test/CFrontend
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-03-03 21:59:00 +0000
committerChris Lattner <sabre@nondot.org>2008-03-03 21:59:00 +0000
commitc2a324fa364601c863416eb558f399200a7e0978 (patch)
treee1f3ac10cf6e85b1e6bf01e52aedaaa229d83a3b /test/CFrontend
parent41e2397b720bc5d917ef614a7a6c257e8a3c8e42 (diff)
downloadexternal_llvm-c2a324fa364601c863416eb558f399200a7e0978.zip
external_llvm-c2a324fa364601c863416eb558f399200a7e0978.tar.gz
external_llvm-c2a324fa364601c863416eb558f399200a7e0978.tar.bz2
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47858 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CFrontend')
-rw-r--r--test/CFrontend/2008-03-03-CtorAttrType.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CFrontend/2008-03-03-CtorAttrType.c b/test/CFrontend/2008-03-03-CtorAttrType.c
new file mode 100644
index 0000000..dc0e47d
--- /dev/null
+++ b/test/CFrontend/2008-03-03-CtorAttrType.c
@@ -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) {}
+