Add another test.

llvm-svn: 75324
This commit is contained in:
Anders Carlsson 2009-07-11 00:55:33 +00:00
parent ae01993a12
commit 43171d6aeb
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
// RUN: clang-cc -fsyntax-only -verify %s -std=c++0x
void f() {
auto a = a; // expected-error{{variable 'a' declared with 'auto' type cannot appear in its own initializer}}
}
void g() {
auto a; // expected-error{{declaration of variable 'a' with type 'auto' requires an initializer}}
auto *b; // expected-error{{declaration of variable 'b' with type 'auto *' requires an initializer}}
}