Split the two invalid uses of the unqualified Foobar at line 3 to two lines

so that it is clearer which use triggered which error.

llvm-svn: 139653
This commit is contained in:
Kaelyn Uhrain 2011-09-13 22:31:32 +00:00
parent 73b5d6ddc1
commit 858fb61d22
1 changed files with 2 additions and 2 deletions

View File

@ -1,8 +1,8 @@
// RUN: %clang_cc1 -fsyntax-only -verify -Wno-c++0x-extensions %s
namespace fizbin { class Foobar; } // expected-note{{'fizbin::Foobar' declared here}}
Foobar *my_bar = new Foobar; // expected-error{{unknown type name 'Foobar'; did you mean 'fizbin::Foobar'?}} \
// expected-error{{expected a type}}
Foobar *my_bar // expected-error{{unknown type name 'Foobar'; did you mean 'fizbin::Foobar'?}}
= new Foobar; // expected-error{{expected a type}}
namespace barstool { int toFoobar() { return 1; } } // expected-note 3 {{'barstool::toFoobar' declared here}}
int Double(int x) { return x + x; }