aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/type-attribute-mod.c
blob: 0e7b166a4aec1d58d6045de2a2870fb6ff04b177 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#define	__noderef	__attribute__((noderef))

struct s {
	int i;
} __noderef;


void main(void)
{
	struct s s;

	s.i = 0;
}

/*
 * check-name: type-attribute-mod
 * check-known-to-fail
 *
 * check-error-start
type-attribute-mod.c:12:9: warning: dereference of noderef expression
 * check-error-end
 */