* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / auto1.C
blobdd8f5fc8cf924137800c08b866d4dbd07ccebdb6
1 // { dg-do compile { target c++11 } }
2 // { dg-options "-std=c++98 -Wc++11-compat -fdiagnostics-show-caret" }
4 // Test warning for use of auto in C++98 mode with C++11
5 // compatibility warnings
6 void f()
8   auto int x = 5; /* { dg-warning "changes meaning" }
9   { dg-begin-multiline-output "" }
10    auto int x = 5;
11    ^~~~
12    ----
13   { dg-end-multiline-output "" } */