c++, coroutines: Simplify separation of the user function body and ramp.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / auto-fn60.C
blob575abafbae5143afab4957192a641c799b092a8d
1 // PR c++/64194
2 // { dg-do compile { target c++14 } }
4 template <typename T> void g(void (*)(T)) { }
6 template <typename> auto id(int) { }
7 template <typename> auto id(char) { return 0; }
9 int main() {
10   g(id<int>);