A previous commit fixed PR5519; here's the test case.

llvm-svn: 89494
This commit is contained in:
Douglas Gregor 2009-11-20 22:05:53 +00:00
parent a25d65d1b6
commit 2094c5e80f
1 changed files with 7 additions and 0 deletions

View File

@ -38,3 +38,10 @@ void explicit_constructor(short s) {
FromShortExplicitly fse1(s);
FromShortExplicitly fse2 = s; // expected-error{{error: cannot initialize 'fse2' with an lvalue of type 'short'}}
}
// PR5519
struct X1 { X1(const char&); };
void x1(X1);
void y1() {
x1(1);
}