Debian Codegraph @

gcc/testsuite/g++.dg/template/pr34938-1.C

raw
1 // PR c++/34938
2
3 typedef void (*fptr)() __attribute((noreturn));
4 template<int> void foo();
5 template<fptr> void bar();
6
7 fptr f = bar< foo<0> >; // { dg-error "noreturn" }