From: Chris Lattner Date: Tue, 7 Mar 2006 22:33:00 +0000 (+0000) Subject: new testcase that should have been added long ago. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=41dd39ee015f1d28fb36ae28d30485a130c8d9bc;p=oota-llvm.git new testcase that should have been added long ago. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26601 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CFrontend/attribute_constructor.c b/test/CFrontend/attribute_constructor.c new file mode 100644 index 00000000000..b2f7c9b19fc --- /dev/null +++ b/test/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(); +}