forked from OSchip/llvm-project
A previous commit fixed PR5519; here's the test case.
llvm-svn: 89494
This commit is contained in:
parent
a25d65d1b6
commit
2094c5e80f
|
@ -38,3 +38,10 @@ void explicit_constructor(short s) {
|
||||||
FromShortExplicitly fse1(s);
|
FromShortExplicitly fse1(s);
|
||||||
FromShortExplicitly fse2 = s; // expected-error{{error: cannot initialize 'fse2' with an lvalue of type 'short'}}
|
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);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue