Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
attr-likely4.C
blob: 0a96edc3183285eb0399f905845b64848e7ee50a [
file
] [
log
] [
blame
]
// { dg-do compile { target c++20 } }
int
a
,
b
,
c
;
void
__attribute__
((
noinline
))
bar
()
{
if
(
a
==
123
)
[[
likely
]]
c
=
5
;
// { dg-warning "both" }
else
[[
likely
]]
b
=
77
;
}
int
main
()
{
bar
();
return
0
;
}