Debian Codegraph @

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

raw
1 // PR c++/13907
2
3 struct A {
4 operator int & ();
5 operator const int & () const;
6 };
7
8
9 void f(int &);
10 void f(const int &);
11
12
13 int main() {
14 const A x = A();
15 f(x);
16 }