r185613 - Testcase for PR14130, which was probably fixed by r183859.
Richard Smith
richard-llvm at metafoo.co.uk
Wed Jul 3 21:04:20 PDT 2013
Author: rsmith
Date: Wed Jul 3 23:04:20 2013
New Revision: 185613
URL: http://llvm.org/viewvc/llvm-project?rev=185613&view=rev
Log:
Testcase for PR14130, which was probably fixed by r183859.
Modified:
cfe/trunk/test/CodeGenCXX/temporaries.cpp
Modified: cfe/trunk/test/CodeGenCXX/temporaries.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/temporaries.cpp?rev=185613&r1=185612&r2=185613&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/temporaries.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/temporaries.cpp Wed Jul 3 23:04:20 2013
@@ -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();
More information about the cfe-commits
mailing list