1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -triple %itanium_abi_triple -emit-llvm -o - %s | FileCheck %s 2f4a2713aSLionel Sambuc 3f4a2713aSLionel Sambuc // CHECK: @llvm.global_ctors 4f4a2713aSLionel Sambuc 5f4a2713aSLionel Sambuc // PR6521 6f4a2713aSLionel Sambuc void bar(); 7f4a2713aSLionel Sambuc struct Foo { 8f4a2713aSLionel Sambuc // CHECK-LABEL: define linkonce_odr void @_ZN3Foo3fooEv fooFoo9f4a2713aSLionel Sambuc static void foo() __attribute__((constructor)) { 10f4a2713aSLionel Sambuc bar(); 11f4a2713aSLionel Sambuc } 12f4a2713aSLionel Sambuc }; 13