X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=parsetest%2FMS%2Fdeclspec.c;h=b702a53be0bf1af3cf72516ebeb0fa331721daa5;hb=0cea06d0229bb7fc17ecf428f6d51e12ed41c88b;hp=9bf117375f9d3841063561527ca31da60f06cc54;hpb=ebc9471c3012fa51c6436d4c7132b2963910e00f;p=cparser diff --git a/parsetest/MS/declspec.c b/parsetest/MS/declspec.c index 9bf1173..b702a53 100644 --- a/parsetest/MS/declspec.c +++ b/parsetest/MS/declspec.c @@ -1,11 +1,18 @@ #include "declspec.h" +int test2(void) { + return 0; +} + int __declspec(align(4)) x; int __declspec(dllimport) y; int __declspec(dllexport, align(4)) z; -int __declspec(noinline, naked, deprecated("Mist"))func(void); +int __declspec(noinline, naked, deprecated("Mist"))func(void) +{ + return 42; +} struct x { int __declspec(property(get=get_a, put=put_a)) a; @@ -21,7 +28,7 @@ void test3(void) { __declspec(deprecated) int (*ptr)(void) = ****test2; -int test4(void) { +int main(void) { int x = ptr(); printf("%I64d\n", x); return x;