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" }
}