diff options
| -rw-r--r-- | clang/test/SemaCXX/using-directive.cpp | 8 | 
1 files changed, 3 insertions, 5 deletions
diff --git a/clang/test/SemaCXX/using-directive.cpp b/clang/test/SemaCXX/using-directive.cpp index 732daacffcc..3b67c7a5b61 100644 --- a/clang/test/SemaCXX/using-directive.cpp +++ b/clang/test/SemaCXX/using-directive.cpp @@ -45,10 +45,10 @@ namespace A {      using namespace E; // expected-error{{reference to 'E' is ambiguous}}    } -  struct K2 {}; // expected-note{{candidate found by name lookup is 'A::K2'}} +  struct K2 {}; // expected-note 2{{candidate found by name lookup is 'A::K2'}}  } -struct K2 {}; // expected-note{{candidate found by name lookup is 'K2'}} +struct K2 {}; // expected-note 2{{candidate found by name lookup is 'K2'}}  using namespace A; @@ -56,9 +56,7 @@ void K1::foo() {} // okay  struct K2 *k2; // expected-error{{reference to 'K2' is ambiguous}} -// FIXME: This case is incorrectly diagnosed! -//K2 k3; - +K2 *k3; // expected-error{{reference to 'K2' is ambiguous}}  class X { // expected-note{{candidate found by name lookup is 'X'}}    // FIXME: produce a suitable error message for this  | 

