LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git] / gcc / testsuite / gcc.dg / switch-2.c
blobcedb69f7b996b4dc92c43c644ef296176a26551c
1 /* PR c/9262 */
2 /* Originator: Rasmus Hahn <rassahah@neofonie.de> */
3 /* { dg-do compile } */
5 int foo(int i)
7 switch (i)
8 case 3:
9 return 1,
10 } /* { dg-error "parse error|syntax error|expected" } */