diff options
author | Anders Carlsson <andersca@mac.com> | 2010-02-02 07:10:35 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2010-02-02 07:10:35 +0000 |
commit | 2e13db8bc64bc99922b0aeb45443c681c1643c82 (patch) | |
tree | 1f67388e09f74e95120d3bab3ac14289dbacd9dc /test/CodeGenCXX/temporaries.cpp | |
parent | 7bb12da2b0749eeebb21854c77877736969e59f2 (diff) |
Check in a test case and a nasty workaround for PR6199.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95076 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/temporaries.cpp')
-rw-r--r-- | test/CodeGenCXX/temporaries.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/CodeGenCXX/temporaries.cpp b/test/CodeGenCXX/temporaries.cpp index 611781886b..c33ca4ebff 100644 --- a/test/CodeGenCXX/temporaries.cpp +++ b/test/CodeGenCXX/temporaries.cpp @@ -249,3 +249,21 @@ namespace PR5867 { g2(17); } } + +// PR6199 +namespace PR6199 { + struct A { ~A(); }; + + struct B { operator A(); }; + + // CHECK: define void @_ZN6PR61992f2IiEENS_1AET_ + template<typename T> A f2(T) { + B b; + // CHECK: call void @_ZN6PR61991BcvNS_1AEEv + // CHECK-NEXT: ret void + return b; + } + + template A f2<int>(int); + +} |