Merge from the pain train
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.oliva / template6.C
blob270d67695f64670db04c8d274e226834bc9497c6
1 // { dg-do assemble  }
3 // Copyright (C) 1999 Free Software Foundation
5 // by Alexandre Oliva <oliva@dcc.unicamp.br>
6 // simplified from bug report by Meenaradchagan Vishnu <mvishnu@fore.com>
8 template <typename> struct foo {};
9 template <> void foo(); // { dg-error "not a template function" } bad specialization
11 struct baz {};
12 template <> void baz (); // { dg-error "not a template function" } bad specialization