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

struct S {};

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