blob: 29cb82569914884b5643955fc37491cab96f844d [file] [log] [blame]
/* Test diagnostics for switch statements and labels therein. Test
for case ranges with -pedantic-errors. */
/* Origin: Joseph Myers <joseph@codesourcery.com> */
/* { dg-do compile } */
/* { dg-options "-pedantic-errors" } */
void
f (int a)
{
switch (a)
{
case 0 ... 0: ; /* { dg-error "range expressions in switch statements are non-standard" } */
}
}