Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.pt/typedef3.C

raw
1 // { dg-do assemble }
2
3 template <class T>
4 void f(T, T)
5 {
6 }
7
8 struct A {
9 typedef enum {
10 VAL1
11 } result_t;
12 };
13
14 struct B {
15 typedef enum {
16 VAL2
17 } result_t;
18 };
19
20
21 void g()
22 {
23 f(A::VAL1, A::VAL1);
24 f(B::VAL2, B::VAL2);
25 }