Reset branch to trunk.
[official-gcc.git] / trunk / gcc / testsuite / g++.dg / ext / visibility / anon10.C
blob8c79631b0a99fdf54d67f84e6d0d3a389e542809
1 // http://bugzilla.redhat.com/411871
2 // { dg-do compile }
4 extern "C" int printf (const char *, ...);
6 struct E
8   template <typename T> E (const volatile T&);
9   template <typename T> E (T&);
10   char x[64];
13 template<typename T> struct D
15   static E foo (E, ...);
16   static int foo (T, int);
19 template<typename T, typename U> struct C
21   static T ca;
22   static const int value = sizeof (D<U>::foo (ca, 0)) == sizeof (int);
25 struct A
27   int a;
30 namespace
32   struct B
33   {
34     int a;
35   };
38 int bar (void)
40   C<A, int> a;
41   C<B, int> b;
43   return a.value + b.value;