summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/auto18.C
blob: 17f7f99595573796d8a407dc5b575c696af1e852 (plain)
1
2
3
4
5
6
// { dg-options "-std=c++0x" }

void f()
{
  auto val = val;  // { dg-error "auto. type used in its own initializer" }
}