Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git] / sdcc / support / valdiag / tests / restrict.c
blob3dbcee32d139a613aea49781226cd870cd54be1d
2 /* The restrict keyword can only qualify pointers to objects */
4 #ifdef TEST1_C99
5 restrict a; /* ERROR */
6 #endif
8 #ifdef TEST2_C99
9 restrict int a; /* ERROR */
10 #endif
12 #ifdef TEST3_C99
13 restrict int a[10]; /* ERROR */
14 #endif
16 #ifdef TEST4_C99
17 restrict int * a; /* ERROR */
18 #endif
20 #ifdef TEST5_C99
21 restrict struct
23 int a;
24 int b;
25 } x; /* ERROR */
26 #endif
28 #ifdef TEST6_C99
29 restrict int func(void) { /* ERROR */
30 return 0;
32 #endif
34 #ifdef TEST7_C99
35 void func(restrict int x) { /* ERROR */
36 x; /* IGNORE */
38 #endif
40 #ifdef TEST8_C99
41 void func(void (*restrict p)(void)) { /* ERROR */
42 p(); /* IGNORE */
44 #endif
47 #ifdef TEST_GOOD1_C99
48 int * restrict a;
49 #endif
51 #ifdef TEST_GOOD2_C99
52 int * func(int * restrict x)
54 return x;
56 #endif
58 #ifdef TEST_GOOD3_C99
59 void func(int * restrict x)
61 x; /* IGNORE */
63 #endif