From: Douglas Gregor Date: Fri, 20 Nov 2009 22:05:53 +0000 (+0000) Subject: A previous commit fixed PR5519; here's the test case. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eeb7fd0ccfd656ac578806fa78a35023f76eca45;p=clang A previous commit fixed PR5519; here's the test case. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89494 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/SemaCXX/converting-constructor.cpp b/test/SemaCXX/converting-constructor.cpp index 59b793e3f2..3f347b4902 100644 --- a/test/SemaCXX/converting-constructor.cpp +++ b/test/SemaCXX/converting-constructor.cpp @@ -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); +}