summaryrefslogtreecommitdiffstats
path: root/llvm
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
commitbe750abfd4f1234792392370b36d12f7f3fb54b9 (patch)
treea367e4ad468a4ad64d79a05c1fc45520a9168f19 /llvm
parent9d91785987f60efe6276387f49526bc5d16f2167 (diff)
downloadbcm5719-llvm-be750abfd4f1234792392370b36d12f7f3fb54b9.tar.gz
bcm5719-llvm-be750abfd4f1234792392370b36d12f7f3fb54b9.zip
new testcase
llvm-svn: 47858
Diffstat (limited to 'llvm')
-rw-r--r--llvm/test/CFrontend/2008-03-03-CtorAttrType.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/CFrontend/2008-03-03-CtorAttrType.c b/llvm/test/CFrontend/2008-03-03-CtorAttrType.c
new file mode 100644
index 00000000000..dc0e47d811a
--- /dev/null
+++ b/llvm/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) {}
+
OpenPOWER on IntegriCloud