summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/t04.C
blob: 087c5755d7e682b9fc7499ec3b9020925cc3eef0 (plain)
1
2
3
4
5
6
7
8
// { dg-do assemble  }

template <class A> class B { public: A a; };
static B<int> b_int;
static B<char> b_char;
static B<unsigned char> b_uchar;

int foo () { return b_int.a + b_char.a + b_uchar.a; }