PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git] / gcc / testsuite / g++.dg / conversion / cond1.C
blob16184ccb4116491389fcb116002f6ae60fcf8ad3
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  }