summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/auto-cxx0x.cpp
blob: 33156ef23d2e84ad5c632127dc1add8549fef4b2 (plain)
1
2
3
4
5
// RUN: clang-cc -fsyntax-only -verify %s -std=c++0x
void f() {
  auto int a; // expected-error{{cannot combine with previous 'auto' declaration specifier}}
  int auto b; // expected-error{{cannot combine with previous 'int' declaration specifier}}
}
OpenPOWER on IntegriCloud