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)
llvm-svn: 201100

clang/test/SemaCXX/explicit.cpp

index 1c4d770..aa28bd8 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}}
+}