freebsd-dev/test/SemaCXX/auto-cxx0x.cpp
2009-10-14 18:03:49 +00:00

6 lines
341 B
C++

// RUN: clang-cc -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}}
}