- more test cases
[cparser] / parsetest / MS / declspec.c
1 #include "declspec.h"
2
3 int __declspec(align(4)) x;
4
5 int __declspec(dllimport) y;
6 int __declspec(dllexport, align(4)) z;
7
8 int __declspec(noinline, naked, deprecated("Mist"))func(void);
9
10 struct x {
11         int __declspec(property(get=get_a, put=put_a)) a;
12 };
13
14 __declspec(restrict) char * malloc_like();
15 int __declspec(noalias) test1(void *a, void *b);
16
17 void test3(void) {
18         test2();
19         func();
20 }
21
22 __declspec(deprecated) int (*ptr)(void) = ****test2;
23
24 int test4(void) {
25         int x  = ptr();
26         printf("%I64d\n", x);
27         return x;
28 }