summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/conditional-expr.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-01-12 01:09:12 +0000
committerJohn McCall <rjmccall@apple.com>2010-01-12 01:09:12 +0000
commitc54cf7373f916aa7d3c1e1c70656cb1b4b601c05 (patch)
treeb4eea6611a70c6c3e35f0c0b5ebdd9ca0db32629 /clang/test/SemaCXX/conditional-expr.cpp
parentad2587a394059240810814fa296478e04792275d (diff)
downloadbcm5719-llvm-c54cf7373f916aa7d3c1e1c70656cb1b4b601c05.tar.gz
bcm5719-llvm-c54cf7373f916aa7d3c1e1c70656cb1b4b601c05.zip
Chris thinks these diagnostics are better now. :)
llvm-svn: 93216
Diffstat (limited to 'clang/test/SemaCXX/conditional-expr.cpp')
-rw-r--r--clang/test/SemaCXX/conditional-expr.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/conditional-expr.cpp b/clang/test/SemaCXX/conditional-expr.cpp
index 8eaff784da6..b71133bfeec 100644
--- a/clang/test/SemaCXX/conditional-expr.cpp
+++ b/clang/test/SemaCXX/conditional-expr.cpp
@@ -128,7 +128,6 @@ void test()
// "the type [it] woud have if E2 were converted to an rvalue"
vfn pfn = i1 ? F() : test;
pfn = i1 ? test : F();
- // these are ambiguous - better messages would be nice
(void)(i1 ? A() : B()); // expected-error {{conversion from 'struct B' to 'struct A' is ambiguous}}
(void)(i1 ? B() : A()); // expected-error {{conversion from 'struct B' to 'struct A' is ambiguous}}
(void)(i1 ? 1 : Ambig()); // expected-error {{conversion from 'struct Ambig' to 'int' is ambiguous}}
OpenPOWER on IntegriCloud