]>
git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/c2x-auto-4.c
3c6cb34710ee74b280e89f5f612fb805b3a20a78
1 /* Test C2x auto. -Wc11-c2x-compat warning. */
2 /* { dg-do compile } */
3 /* { dg-options "-std=c2x -pedantic-errors -Wc11-c2x-compat" } */
5 auto x
= 2; /* { dg-warning "ISO C does not support 'auto' type deduction before" } */