Fix test-suite fallout of default -Wreturn-type.
[official-gcc.git] / gcc / testsuite / g++.dg / template / spec6.C
blobfd41d7417c2c6deb9e5a15c5cc1a36e12307be5e
1 // { dg-additional-options "-Wno-return-type" }
3 template <bool, int> struct X {};
5 template <bool C>    struct X<C,1> {
6     typedef double* type;
7     type foo () const;
8 };
10 template <bool C>
11 typename X<C,1>::type
12 X<C,1>::foo () const {}