OSDN Git Service

PR c++/39554
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / warn / noreturn-5.C
1 // PR c++/30988
2 // { dg-do compile }
3 // { dg-options "-O2 -Wall" }
4
5 void f (const char *) __attribute__ ((noreturn));
6 void f (int) __attribute__ ((noreturn));
7 void f (double) __attribute__ ((noreturn));
8
9 template <typename T> struct A
10 {
11   int g ()
12   {
13     f ((T) 0);
14   }
15 };