Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
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" }
}