commit | eeb7fd0ccfd656ac578806fa78a35023f76eca45 | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Fri Nov 20 22:05:53 2009 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Fri Nov 20 22:05:53 2009 +0000 |
tree | 453ed45c386a1f35f33300a2ac4359004afcc4f2 | |
parent | f6e6fc801c700c7b8ac202ddbe550d9843a816fc [diff] [blame] |
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 59b793e..3f347b4 100644 --- a/test/SemaCXX/converting-constructor.cpp +++ b/test/SemaCXX/converting-constructor.cpp
@@ -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); +}