]> granicus.if.org Git - clang/commitdiff
PR18777: This PR is already fixed; add regtest.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 10 Feb 2014 17:21:40 +0000 (17:21 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 10 Feb 2014 17:21:40 +0000 (17:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201100 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaCXX/explicit.cpp

index 1c4d7704511b91b7b7e214da13e6c0cf8feee644..aa28bd85af4655e60f76e75797794a6eea9566ef 100644 (file)
@@ -246,3 +246,8 @@ namespace pr8264 {
   explicit explicit Test(int x);  // expected-warning{{duplicate 'explicit' declaration specifier}}
   };
 }
+
+namespace PR18777 {
+  struct S { explicit operator bool() const; } s;
+  int *p = new int(s); // expected-error {{no viable conversion}}
+}