]> granicus.if.org Git - clang/commitdiff
Testcase for PR14130, which was probably fixed by r183859.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 4 Jul 2013 04:04:20 +0000 (04:04 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 4 Jul 2013 04:04:20 +0000 (04:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185613 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenCXX/temporaries.cpp

index 2ea1f1fb66b390f340ef271396216f0ef3d503c8..6e4a7cbcf0bf106831e3536f3ac69a6538cfc7c1 100644 (file)
@@ -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();