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