Clean up some minor white space issues in trans-decl.c and trans-expr.c
[official-gcc.git] / gcc / testsuite / g++.dg / torture / pr53364.C
blob36bb083e828cad5a4d073ac17b63f1fdd790c4ef
1 // { dg-do run }
3 extern "C" void abort (void);
5 template<typename _Tp>
6 inline const _Tp&
7 min(const _Tp& __a, const _Tp& __b)
9   if (__b < __a)
10     return __b;
11   return __a;
14 struct A
16   int m_x;
18   explicit A(int x) : m_x(x) {}
19   operator int() const { return m_x; }
22 struct B : public A
24 public:
25   explicit B(int x) : A(x) {}
28 int data = 1;
30 int main()
32   B b = B(10);
33   b = min(b, B(data));
34   if (b != 1)
35     abort ();
36   return 0;