summaryrefslogtreecommitdiff
path: root/test/FrontendC/attribute_constructor.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/FrontendC/attribute_constructor.c')
-rw-r--r--test/FrontendC/attribute_constructor.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/FrontendC/attribute_constructor.c b/test/FrontendC/attribute_constructor.c
new file mode 100644
index 000000000000..b2f7c9b19fc0
--- /dev/null
+++ b/test/FrontendC/attribute_constructor.c
@@ -0,0 +1,6 @@
+// RUN: %llvmgcc %s -c -o - | llvm-dis | grep llvm.global_ctors
+
+void foo() __attribute__((constructor));
+void foo() {
+ bar();
+}