[cfe-commits] r93216 - /cfe/trunk/test/SemaCXX/conditional-expr.cpp

John McCall rjmccall at apple.com
Mon Jan 11 17:09:12 PST 2010


Author: rjmccall
Date: Mon Jan 11 19:09:12 2010
New Revision: 93216

URL: http://llvm.org/viewvc/llvm-project?rev=93216&view=rev
Log:
Chris thinks these diagnostics are better now. :)


Modified:
    cfe/trunk/test/SemaCXX/conditional-expr.cpp

Modified: cfe/trunk/test/SemaCXX/conditional-expr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/conditional-expr.cpp?rev=93216&r1=93215&r2=93216&view=diff

==============================================================================
--- cfe/trunk/test/SemaCXX/conditional-expr.cpp (original)
+++ cfe/trunk/test/SemaCXX/conditional-expr.cpp Mon Jan 11 19:09:12 2010
@@ -128,7 +128,6 @@
   // "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}}





More information about the cfe-commits mailing list