2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / template / sizeof1.C
blob45a7db48c926cc94bf1ea3dbf7ddac0ea664346b
1 // Test use of `sizeof' as a template parameter.
2 // Origin: smacdonald@seimac.com
4 // { dg-do compile }
6 template <unsigned I> struct A { static char *value; };
8 template <typename SizeType>
9 struct B
11 char * f() const
13 return (A<sizeof(void *)>::value);