summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/auto1.C
blob: 9e274b62239feed70efbf5149204703931079d48 (plain)
1
2
3
4
5
6
7
8
// { dg-options "-std=c++98 -Wc++0x-compat" }

// Test warning for use of auto in C++98 mode with C++0x
// compatibility warnings
void f()
{
  auto int x = 5; // { dg-warning "will change meaning" }
}