1static void test_volatile(void)
2{
3	volatile int x = 0;
4	int *pp;
5
6	typeof(++x)		v1; pp = &v1;	// KO
7	typeof(x++)		v2; pp = &v2;	// KO
8}
9
10/*
11 * check-name: unqual-postop
12 * check-command: sparse -Wno-declaration-after-statement $file
13 * check-known-to-fail
14 *
15 * check-error-start
16eval/unqual-postop.c:6:40: warning: incorrect type in assignment (different modifiers)
17eval/unqual-postop.c:6:40:    expected int *pp
18eval/unqual-postop.c:6:40:    got int volatile *
19eval/unqual-postop.c:7:40: warning: incorrect type in assignment (different modifiers)
20eval/unqual-postop.c:7:40:    expected int *pp
21eval/unqual-postop.c:7:40:    got int volatile *
22 * check-error-end
23 */
24