1 // { dg-do compile { target c++11 } }
2 // { dg-options "-std=c++98 -Wc++11-compat -fdiagnostics-show-caret" }
3 
4 // Test warning for use of auto in C++98 mode with C++11
5 // compatibility warnings
f()6 void f()
7 {
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 "" } */
14 }
15