From 41dd39ee015f1d28fb36ae28d30485a130c8d9bc Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 7 Mar 2006 22:33:00 +0000 Subject: [PATCH] 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 --- test/CFrontend/attribute_constructor.c | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 test/CFrontend/attribute_constructor.c 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(); +} -- 2.11.0