diff options
author | rdivacky <rdivacky@FreeBSD.org> | 2009-11-19 09:00:00 +0000 |
---|---|---|
committer | rdivacky <rdivacky@FreeBSD.org> | 2009-11-19 09:00:00 +0000 |
commit | 6df2408694f81a03eb8b0e3b013272042233c061 (patch) | |
tree | c7f5a7b6fd212399d821b83b22c1e6a42e8c4a0d /test/SemaCXX/using-directive.cpp | |
parent | 741c13ecc20fb35b836ad690aeecd402f002d654 (diff) | |
download | FreeBSD-src-6df2408694f81a03eb8b0e3b013272042233c061.zip FreeBSD-src-6df2408694f81a03eb8b0e3b013272042233c061.tar.gz |
Update clang to r89337.
Diffstat (limited to 'test/SemaCXX/using-directive.cpp')
-rw-r--r-- | test/SemaCXX/using-directive.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/test/SemaCXX/using-directive.cpp b/test/SemaCXX/using-directive.cpp index 78ad0429..3b67c7a 100644 --- a/test/SemaCXX/using-directive.cpp +++ b/test/SemaCXX/using-directive.cpp @@ -45,22 +45,18 @@ 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; void K1::foo() {} // okay -// FIXME: Do we want err_ovl_no_viable_function_in_init here? -struct K2 k2; // expected-error{{reference to 'K2' is ambiguous}} \ - expected-error{{incomplete type}} - -// FIXME: This case is incorrectly diagnosed! -//K2 k3; +struct K2 *k2; // expected-error{{reference to 'K2' is ambiguous}} +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 |