summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/expr/minmax.C
blob: 407a92bb4758a690ea1bcf2d208e038780c6b3d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do compile }

void f(void)
{
	int a, b;
	(a >? b) = 1; // { dg-error "" }
}


void g(void)
{
	int a, b;
	(a <? b) = 1; // { dg-error "" }
}