repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[Clang] replace 'bitfield' with 'bit-field' for consistency (#117881)
[llvm-project.git]
/
clang
/
test
/
CodeGenCXX
/
constructor-attr.cpp
blob
ec27ed210ce760fa17e05048a3291c15bd95b93e
1
// RUN: %clang_cc1 -triple %itanium_abi_triple -emit-llvm -o - %s | FileCheck %s
2
3
// CHECK: @llvm.global_ctors
4
5
// PR6521
6
void
bar
();
7
struct
Foo
{
8
// CHECK-LABEL: define linkonce_odr {{.*}}void @_ZN3Foo3fooEv
9
static void
foo
()
__attribute__
((
constructor
)) {
10
bar
();
11
}
12
};