diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-04-13 15:14:38 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-04-13 15:14:38 +0000 |
commit | 841b53c5021152fa930e517d66e02e97ae47c34b (patch) | |
tree | 027265408f022584a5cde8b086d3989f66af6143 /test/SemaCXX/using-directive.cpp | |
parent | 4d41765accd438b6bf982801b4603290446206e0 (diff) |
Make the selection of type declarations in Sema::getTypeName
deterministic when faced with an ambiguity. This eliminates the
annoying test/SemaCXX/using-directive.cpp failure.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68952 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/using-directive.cpp')
-rw-r--r-- | test/SemaCXX/using-directive.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/test/SemaCXX/using-directive.cpp b/test/SemaCXX/using-directive.cpp index a4d35c4802..924cf077b6 100644 --- a/test/SemaCXX/using-directive.cpp +++ b/test/SemaCXX/using-directive.cpp @@ -1,5 +1,4 @@ // RUN: clang-cc -fsyntax-only -verify %s -// XFAIL namespace A { short i; // expected-note 2{{candidate found by name lookup is 'A::i'}} @@ -95,8 +94,7 @@ namespace OneFunction { } namespace TwoTag { - struct X; // expected-note{{candidate found by name lookup is 'TwoTag::X'}} \ - // expected-note{{forward declaration}} + struct X; // expected-note{{candidate found by name lookup is 'TwoTag::X'}} } namespace FuncHidesTagAmbiguity { @@ -105,7 +103,6 @@ namespace FuncHidesTagAmbiguity { using namespace TwoTag; void test() { - (void)X(); // expected-error{{reference to 'X' is ambiguous}} \ - // FIXME: expected-error{{invalid use of incomplete type}} + (void)X(); // expected-error{{reference to 'X' is ambiguous}} } } |