PR c++/67273
[official-gcc.git] / gcc / testsuite / g++.dg / lookup / using27.C
blobc94cf6ea1a5669fe72dd467e43f466c106208f68
1 // PR c++/26256
2 // { dg-do run }
4 struct A
6     typedef int type;
7 };
9 struct B
11     typedef double type;
14 struct C : A, B
16     using A::type;
17     type d;
19     void f()
20     {
21         type e;
22         if (sizeof (type) != sizeof (A::type))
23             __builtin_abort();
24     }
26     void g();
29 void C::g()
31     type x;
32     if (sizeof (type) != sizeof (A::type))
33         __builtin_abort();
36 int main ()
38     if (sizeof (C::type) != sizeof (A::type))
39         __builtin_abort();
41     if (sizeof (C::d) != sizeof (A::type))
42         __builtin_abort();
44     C::type x;
45     C c;
46     c.f();
47     c.g();