OSDN Git Service

2008-03-26 Douglas Gregor <doug.gregor@gmail.com>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / auto1.C
1 // { dg-options "-std=c++98 -Wc++0x-compat" }
2
3 // Test warning for use of auto in C++98 mode with C++0x
4 // compatibility warnings
5 void f()
6 {
7   auto int x = 5; // { dg-warning "will change meaning" }
8 }