blob: dfc983b177d2112016b04453f09c8df634b97d32 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// Origin: PR 46527
// { dg-do compile }
// { dg-options "-g -O0 -dA" }
template <typename T> struct Struct {
double defined_later();
};
struct WrapperStruct {
Struct<double> ClassInstantiated;
};
template <typename T> double
Struct<T>::defined_later() // { dg-function-on-line {_ZN6StructIdE13defined_laterEv} }
{
return 1;
}
void InstantiateMethod() {
Struct<double>().defined_later();
}
|