aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/conversion/pr66211.C
blob: 49d2478888aa6029cb8ccd7b4a8b2cd964819135 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/66211
// { dg-do compile }

void f(int&){}

int main()
{
  int x = 0;
  double y = 1;
  f(1 > 0 ? x : y); // { dg-error "from an rvalue" }
}