From c2a324fa364601c863416eb558f399200a7e0978 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 3 Mar 2008 21:59:00 +0000 Subject: [PATCH] new testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47858 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CFrontend/2008-03-03-CtorAttrType.c | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 test/CFrontend/2008-03-03-CtorAttrType.c diff --git a/test/CFrontend/2008-03-03-CtorAttrType.c b/test/CFrontend/2008-03-03-CtorAttrType.c new file mode 100644 index 00000000000..dc0e47d811a --- /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) {} + -- 2.34.1