Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/attr-fallthrough2.C

raw
1 // C++ 26 P2552R3 - On the ignorability of standard attributes
2 // { dg-do compile { target c++11 } }
3
4 void
5 foo ()
6 {
7 [[fallthrough]]; // { dg-error "invalid use of attribute 'fallthrough'" }
8 lab:;
9 goto lab;
10 }