blob: 468ce36688f797e9d850e79d874340bf5eff39a9 [file] [log] [blame]
Hans Wennborgc9bd88e2014-01-14 19:35:09 +00001// RUN: %clang_cc1 -triple %itanium_abi_triple -emit-llvm -o - %s | FileCheck %s
Douglas Gregord66828d2011-02-19 21:54:50 +00002
3// CHECK: @llvm.global_ctors
4
5// PR6521
6void bar();
7struct Foo {
Stephen Lin43622612013-08-15 06:47:53 +00008 // CHECK-LABEL: define linkonce_odr void @_ZN3Foo3fooEv
Douglas Gregord66828d2011-02-19 21:54:50 +00009 static void foo() __attribute__((constructor)) {
10 bar();
11 }
12};