2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / template / sizeof2.C
blob76d1cf44c4e3801e50783e1c72e7ab46b5e55708
1 // { dg-do compile }
3 template<int size>
4 struct Foobar {
5     // Contents irrelevant
6 };
8 template <typename A>
9 struct Wrapper {
10     // Contents irrelevant
13 template <typename A>
14 Foobar<sizeof(Wrapper<A>)> *
15 compiler_bug (A)
17     return 0;
20 int main()
22     compiler_bug(1);