]> granicus.if.org Git - clang/commitdiff
A previous commit fixed PR5519; here's the test case.
authorDouglas Gregor <dgregor@apple.com>
Fri, 20 Nov 2009 22:05:53 +0000 (22:05 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 20 Nov 2009 22:05:53 +0000 (22:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89494 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaCXX/converting-constructor.cpp

index 59b793e3f28c68ef28f02b36bb8627a3e8988269..3f347b49022efdca6f896ff95a5d96219520295b 100644 (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);
+}