summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-03-07 22:33:00 +0000
committerChris Lattner <sabre@nondot.org>2006-03-07 22:33:00 +0000
commitd312f730227c265239a75f597e77c85c981d7328 (patch)
tree3db1fb6b21139f3d349cb6349e4d8ab472b5d586 /llvm/test
parent313570fb17979bd48607362272f2aafc3d8ddad7 (diff)
downloadbcm5719-llvm-d312f730227c265239a75f597e77c85c981d7328.tar.gz
bcm5719-llvm-d312f730227c265239a75f597e77c85c981d7328.zip
new testcase that should have been added long ago.
llvm-svn: 26601
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/Regression/CFrontend/attribute_constructor.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/Regression/CFrontend/attribute_constructor.c b/llvm/test/Regression/CFrontend/attribute_constructor.c
new file mode 100644
index 00000000000..b2f7c9b19fc
--- /dev/null
+++ b/llvm/test/Regression/CFrontend/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();
+}
OpenPOWER on IntegriCloud