aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/context-unreachable.c
blob: 8664962ea088aaa9e425309dc27056f1905a516b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
int fun(void);

static void foo(void)
{
	__context__(1);
	if (!fun()) {
		__builtin_unreachable();
		return;
	}
	__context__(-1);
}

/*
 * check-name: context-unreachable
 */