Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.oliva/template6.C

raw
1 // { dg-do assemble }
2
3 // Copyright (C) 1999 Free Software Foundation
4
5 // by Alexandre Oliva <[email protected]>
6 // simplified from bug report by Meenaradchagan Vishnu <[email protected]>
7
8 template <typename> struct foo {};
9 template <> void foo(); // { dg-error "not a template function" } bad specialization
10
11 struct baz {};
12 template <> void baz (); // { dg-error "not a template function" } bad specialization