2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / spec38.C
blob75095575bd6cbdabe2b65cfd154d200200d9b612
1 // { dg-do assemble  }
2 // 
3 // Copyright (C) 2000 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 19 Jan 2001 <nathan@codesourcery.com>
6 // Bug 1638. We failed to check if a function instantiation produced a void
7 // parameter type.
9 template <class T> struct S
11   int f (T);    // { dg-error "" } void type
14 void foo ()
16   S<void> s;