blob: d3fdfb4c38154c9971e49a39e2613c84b5dec7b7 [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 "error: range expressions in switch statements are non-standard" } */
}
}