Skip to content

Commit 002d73c

Browse files
author
Sunil Srivastava
committed
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. llvm-svn: 362564
1 parent fdc3546 commit 002d73c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ABI-Testsuite/test/mangling/lambdas.xpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,6 @@ void call_foo4() {
4949
template<typename T> struct S1 {
5050
static int x;
5151
};
52-
template<typename T> int S1<T>::x = []{ return 1;}();
52+
int extVar;
53+
template<typename T> int S1<T>::x = []{ return extVar;}();
5354
template int S1<int>::x;

0 commit comments

Comments
 (0)