Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
conversion
/
pr66211.C
blob: 5c1ae13c76d02e17beaffea617f1699c5b80560f [
file
] [
log
] [
blame
]
// PR c++/66211
// { dg-do compile }
void
f
(
int
&){}
int
main
()
{
int
x
=
0
;
double
y
=
1
;
f
(
1
>
0
?
x
:
y
);
// { dg-error "cannot bind non-const lvalue reference of type .int&. to a value of type .double" }
}