summaryrefslogtreecommitdiffstats
path: root/tests/diagnostics/while-predicate-type.slang
blob: 14ce45533cff51fad05b343a4f5d8e58f6f37656 (plain)
1
2
3
4
5
6
7
8
9
10
//TEST:SIMPLE:
// bad type for `while` predicate

struct S {};

void foo()
{
	S s;
	while(s) {break;}
}