aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 0000000000..dc0e47d811
--- /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) {}
+