llvm-project/clang/test/SemaCXX/auto-cxx0x.cpp

6 lines
343 B
C++
Raw Normal View History

// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++0x
void f() {
2009-07-11 09:00:52 +08:00
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}}
}