From 36981b17ed939300f6f8fc2355a255f711fcef71 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Thu, 20 Oct 2011 21:14:49 +0000 Subject: Vendor import of clang release_30 branch r142614: http://llvm.org/svn/llvm-project/cfe/branches/release_30@142614 --- test/CodeGen/attribute_constructor.c | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 test/CodeGen/attribute_constructor.c (limited to 'test/CodeGen/attribute_constructor.c') diff --git a/test/CodeGen/attribute_constructor.c b/test/CodeGen/attribute_constructor.c new file mode 100644 index 000000000000..c82c263dda19 --- /dev/null +++ b/test/CodeGen/attribute_constructor.c @@ -0,0 +1,6 @@ +// RUN: %clang_cc1 %s -emit-llvm -o - | grep llvm.global_ctors + +void foo() __attribute__((constructor)); +void foo() { + bar(); +} -- cgit v1.3