1 // { dg-do compile { target c++2a } } 2 3 bool b; main()4 int main() 5 { 6 if (b) 7 [[likely, likely]] b; // { dg-warning "ignoring" } 8 else 9 [[unlikely]] [[likely]] b; // { dg-warning "ignoring" } 10 11 [[likely, unlikely]] lab:; // { dg-warning "ignoring" } 12 } 13