blob: 3c6cb34710ee74b280e89f5f612fb805b3a20a78 [file] [log] [blame]
/* Test C2x auto. -Wc11-c2x-compat warning. */
/* { dg-do compile } */
/* { dg-options "-std=c2x -pedantic-errors -Wc11-c2x-compat" } */
auto x = 2; /* { dg-warning "ISO C does not support 'auto' type deduction before" } */