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
8 auto int x = 5; /* { dg-warning "changes meaning" }
9 { dg-begin-multiline-output "" }
13 { dg-end-multiline-output "" } */