☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
attr-fallthrough2.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/attr-fallthrough2.C
code
plain
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
}