summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/temporaries.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-07-04 04:04:20 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-07-04 04:04:20 +0000
commit17dfe3fd8b8b64e202c7f63b94146db8284903c6 (patch)
tree02e2f54d42d67305a79a505dc4e41cbe3d47cd62 /test/CodeGenCXX/temporaries.cpp
parent8bc99dd30cd8716aa1f14b037ad1d70c45039911 (diff)
Testcase for PR14130, which was probably fixed by r183859.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185613 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/temporaries.cpp')
-rw-r--r--test/CodeGenCXX/temporaries.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGenCXX/temporaries.cpp b/test/CodeGenCXX/temporaries.cpp
index 2ea1f1fb66..6e4a7cbcf0 100644
--- a/test/CodeGenCXX/temporaries.cpp
+++ b/test/CodeGenCXX/temporaries.cpp
@@ -757,6 +757,14 @@ namespace MultipleExtension {
}
}
+namespace PR14130 {
+ struct S { S(int); };
+ struct U { S &&s; };
+ U v { { 0 } };
+ // CHECK: call void @_ZN7PR141301SC1Ei({{.*}} @_ZGRN7PR141301vE, i32 0)
+ // CHECK: store {{.*}} @_ZGRN7PR141301vE, {{.*}} @_ZN7PR141301vE
+}
+
namespace Ctor {
struct A { A(); ~A(); };
void f();