rt_gccstream/gcc/testsuite/g++.dg/conversion/op2.C

17 lines
345 B
C

// PR c++/13907
struct A {
operator int & ();
operator const int & () const;
};
void f(int &);
void f(const int &);
int main() {
const A x = A();
f(x);
}