Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
clang
/
e45aa073431f94fc0dafb56477aec2068ba2880f
/
.
/
test
/
CodeGenCXX
/
constructor-attr.cpp
blob: 4f6d635e95d1ead126f38550e1ec4239a587af26 [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
// CHECK: @llvm.global_ctors
// PR6521
void
bar
();
struct
Foo
{
// CHECK-LABEL: define linkonce_odr void @_ZN3Foo3fooEv
static
void
foo
()
__attribute__
((
constructor
))
{
bar
();
}
};