aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/abi/lambda-defarg1.C
blob: 79e4fa64ac57245c6a483550ec683c40a3ac994d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/91241
// { dg-do compile { target c++11 } }
// { dg-additional-options -fkeep-inline-functions }

struct A {
  int *b(const int & = []() -> int { return 0; }(),
	 const int & = []() -> int { return 0; }());
};
int *A::b(const int &, const int &) { b(); return 0; }
// { dg-final { scan-assembler "_ZN1A1bERKiS1_" } }
// { dg-final { scan-assembler "_ZZN1A1bERKiS1_Ed_NKUlvE_clEv" } }
// { dg-final { scan-assembler "_ZZN1A1bERKiS1_Ed0_NKUlvE_clEv" } }