blob: 1c59393013335132abb47453540aa20990e7d1c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// PR c++/55223
// { dg-do compile { target c++11 } }
// { dg-options "-fabi-version=0" }
// { dg-final { scan-assembler "_ZN8functionC1IZN1CIiE4testES_Ed_UliE_EET_" } }
struct function
{
template <class U> function(U u) { }
};
template<typename T> struct C
{
static T test(function f = [](int i){return i;}) { }
};
int main()
{
C<int>::test();
}
|