aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/eval/unqual-cast.c
blob: 4106ec3b81a815e687121cb8101d1fdec557d14e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#define cvr const volatile restrict

_Static_assert([typeof((cvr int) 0)] == [int]);
_Static_assert([typeof((cvr int *) 0)] == [cvr int *]);

static int *function(volatile int x)
{
	extern typeof((typeof(x)) (x)) y;
	return &y;
}

/*
 * check-name: unqual-cast
 */