c++, coroutines: Simplify separation of the user function body and ramp.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / auto-fn63.C
blobca3bc854065ca4ed604b232c546bf7b849ed402d
1 // PR c++/105779
2 // { dg-do compile { target c++14 } }
4 template<int>
5 struct struct1
7   static auto apply() { return 1; }
8 };
10 int method(int(*f)());
12 int t = method(struct1<1>::apply);