]> granicus.if.org Git - clang/commitdiff
Fix up after r163846. Sorry!
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 13 Sep 2012 22:03:58 +0000 (22:03 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 13 Sep 2012 22:03:58 +0000 (22:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163849 91177308-0d34-0410-b5e6-96231b3b80d8

test/CXX/conv/conv.prom/p4.cpp

index 26aeee102e2ff3b141416a1ebbe31c0cf4a97b9e..628c19c4633c284f1dfeeff1b12f2a077143e82c 100644 (file)
@@ -14,13 +14,14 @@ enum B : bool { false_, true_ };
 template<bool> struct T {};
 T<false_> f;
 T<true_> t;
-T<+true_> t; // expected-error {{conversion from 'int' to 'bool'}}
+// FIXME: DR1407 will make this ill-formed for a different reason.
+T<+true_> q; // desired-error {{conversion from 'int' to 'bool'}}
 
 enum B2 : bool {
   a = false,
   b = true,
   c = false_,
   d = true_,
-  e = +false_ // expected-error {{conversion from 'int' to 'bool'}} \
-              // FIXME: expected-error {{enumerator value 2 is not representable}}
+  // FIXME: DR1407 will make this ill-formed
+  e = +false_ // desired-error {{conversion from 'int' to 'bool'}}
 };