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