re PR c++/70808 (Spurious -Wzero-as-null-pointer-constant for nullptr_t)
[official-gcc.git] / gcc / testsuite / g++.dg / warn / Wreturn-1.C
blobf0dba504b9bf750064f6ea540e46ba89f1e4f559
1 // { dg-options "-Wreturn-type" }
2 // PR c++/15742
4 extern void exit(int) __attribute__ ((noreturn));
6 template<typename T>
7 struct A {
8   int find_cmp(void) { exit(1); }
9 };