call.c (struct conversion): Add base_p.
[platform/upstream/gcc.git] / gcc / testsuite / g++.dg / conversion / cond1.C
1 // PR c++/9440
2  struct A {
3      explicit A(int = 0);
4      A(const A&);
5      operator int() const;
6  };
7  
8  A
9  bar(bool b, const A& a)
10  {
11      return (b ? A() : a);
12  }