[test-suite] r362564 - Made lambda test more robust.
Sunil Srivastava via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 4 17:46:45 PDT 2019
Author: ssrivastava
Date: Tue Jun 4 17:46:45 2019
New Revision: 362564
URL: http://llvm.org/viewvc/llvm-project?rev=362564&view=rev
Log:
Made lambda test more robust.
The test used a lambda that could be optimized out as a constexpr lambda in
the C++17 mode, leading to a test faiure due to a missing symbol. This patch
avoids that.
Modified:
test-suite/trunk/ABI-Testsuite/test/mangling/lambdas.xpp
Modified: test-suite/trunk/ABI-Testsuite/test/mangling/lambdas.xpp
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/ABI-Testsuite/test/mangling/lambdas.xpp?rev=362564&r1=362563&r2=362564&view=diff
==============================================================================
--- test-suite/trunk/ABI-Testsuite/test/mangling/lambdas.xpp (original)
+++ test-suite/trunk/ABI-Testsuite/test/mangling/lambdas.xpp Tue Jun 4 17:46:45 2019
@@ -49,5 +49,6 @@ void call_foo4() {
template<typename T> struct S1 {
static int x;
};
-template<typename T> int S1<T>::x = []{ return 1;}();
+int extVar;
+template<typename T> int S1<T>::x = []{ return extVar;}();
template int S1<int>::x;
More information about the llvm-commits
mailing list