- fixed parse_error_expected()
[cparser] / parsetest / MS / declspec.c
index 9bf1173..b702a53 100644 (file)
@@ -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;