repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
testsuite: update mangling
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
attr-likely4.C
blob
0a96edc3183285eb0399f905845b64848e7ee50a
1
// { dg-do compile { target c++20 } }
2
3
int a, b, c;
4
5
void
6
__attribute__((noinline))
7
bar()
8
{
9
if (a == 123)
10
[[likely]] c = 5; // { dg-warning "both" }
11
else
12
[[likely]] b = 77;
13
}
14
15
int main()
16
{
17
bar ();
18
return 0;
19
}