1 /* Test C2x auto. -Wc11-c2x-compat warning. */
2 /* { dg-do compile } */
3 /* { dg-options "-std=c2x -pedantic-errors -Wc11-c2x-compat" } */
4
5 auto x = 2; /* { dg-warning "ISO C does not support 'auto' type deduction before" } */