PR18777: This PR is already fixed; add regtest.

llvm-svn: 201100
This commit is contained in:
Richard Smith 2014-02-10 17:21:40 +00:00
parent cfb40600e9
commit 36be8d8306
1 changed files with 5 additions and 0 deletions

View File

@ -246,3 +246,8 @@ namespace pr8264 {
explicit explicit Test(int x); // expected-warning{{duplicate 'explicit' declaration specifier}} 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}}
}