Clean up some minor white space issues in trans-decl.c and trans-expr.c
[official-gcc.git] / gcc / testsuite / g++.dg / lookup / using29.C
blob428021cf778712aabbf740f95035670f9c8e5b73
1 // { dg-do compile }
3 struct A
5   int i;
6 };
8 struct B
10   int i;
13 struct C : A, B
15   using A::i; // { dg-message "previous" }
16   using B::i; // { dg-error "redeclaration" }
19 struct E
21   typedef int type;
24 struct F
26   typedef int type;
29 struct G : E, F
31   using E::type; // { dg-message "previous" }
32   using F::type; // { dg-error "redeclaration" }
35 struct H
37   typedef int type;
40 struct I : H
42   typedef int type; // { dg-message "previous" }
43   using H::type; // { dg-error "conflicts" }
46 struct I2 : H
48   using H::type; // { dg-message "previous" }
49   typedef int type; // { dg-error "conflicts" }
52 struct J
54   struct type {};
57 struct K : J
59   struct type {}; // { dg-message "previous" }
60   using J::type; // { dg-error "conflicts" }
63 struct L : J
65   using J::type; // { dg-message "previous" }
66   struct type {}; // { dg-error "conflicts" }
69 struct M
71   typedef int type;
72   struct type2 {};
75 struct N : M
77   using M::type; // { dg-message "previous" }
78   using M::type; // { dg-error "redeclaration" }
79   using M::type2; // { dg-message "previous" }
80   using M::type2; // { dg-error "redeclaration" }