[cfe-commits] r89494 - /cfe/trunk/test/SemaCXX/converting-constructor.cpp
Douglas Gregor
dgregor at apple.com
Fri Nov 20 14:05:54 PST 2009
Author: dgregor
Date: Fri Nov 20 16:05:53 2009
New Revision: 89494
URL: http://llvm.org/viewvc/llvm-project?rev=89494&view=rev
Log:
A previous commit fixed PR5519; here's the test case.
Modified:
cfe/trunk/test/SemaCXX/converting-constructor.cpp
Modified: cfe/trunk/test/SemaCXX/converting-constructor.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/converting-constructor.cpp?rev=89494&r1=89493&r2=89494&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/converting-constructor.cpp (original)
+++ cfe/trunk/test/SemaCXX/converting-constructor.cpp Fri Nov 20 16:05:53 2009
@@ -38,3 +38,10 @@
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);
+}
More information about the cfe-commits
mailing list