Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/attr-likely4.C

raw
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 }