diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-11-20 22:05:53 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-11-20 22:05:53 +0000 |
commit | eeb7fd0ccfd656ac578806fa78a35023f76eca45 (patch) | |
tree | 453ed45c386a1f35f33300a2ac4359004afcc4f2 /test/SemaCXX/converting-constructor.cpp | |
parent | f6e6fc801c700c7b8ac202ddbe550d9843a816fc (diff) |
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
Diffstat (limited to 'test/SemaCXX/converting-constructor.cpp')
-rw-r--r-- | test/SemaCXX/converting-constructor.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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); +} |