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 | 712a351c42d5378ce02532802b51c5fb60e868af (patch) | |
tree | e0c6d6feda8ea0b24961f667bd19f2045872d923 /clang/test/SemaCXX/using-directive.cpp | |
parent | 092b8b6fdb36700f07b3097c13090ee99583a401 (diff) | |
download | bcm5719-llvm-712a351c42d5378ce02532802b51c5fb60e868af.tar.gz bcm5719-llvm-712a351c42d5378ce02532802b51c5fb60e868af.zip |
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.
llvm-svn: 68952
Diffstat (limited to 'clang/test/SemaCXX/using-directive.cpp')
-rw-r--r-- | clang/test/SemaCXX/using-directive.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/clang/test/SemaCXX/using-directive.cpp b/clang/test/SemaCXX/using-directive.cpp index a4d35c4802c..924cf077b63 100644 --- a/clang/test/SemaCXX/using-directive.cpp +++ b/clang/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}} } } |