gcc/testsuite/g++.dg/other/dump-ada-spec-7.C
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-fdump-ada-spec" } */ |
| 3 | |
| 4 | template<int n> |
| 5 | void bar () |
| 6 | { |
| 7 | return; |
| 8 | } |
| 9 | |
| 10 | class Foo |
| 11 | { |
| 12 | // This check that we properly skip the specification for templated |
| 13 | // members of non-templated classes. |
| 14 | template<int n> |
| 15 | void bar (); |
| 16 | }; |
| 17 | |
| 18 | template<int n> |
| 19 | void Foo::bar () |
| 20 | { |
| 21 | return; |
| 22 | } |
| 23 | |
| 24 | /* { dg-final { cleanup-ada-spec } } */ |