1
0
Berk Geveci 22 жил өмнө
parent
commit
2522153e59

+ 2 - 2
Tests/SimpleInstall/foo.c

@@ -1,6 +1,6 @@
 char* foo = "Foo";
 
-int SomeFunctionInFoo(int i)
+int SomeFunctionInFoo()
 {
-  return i + 5;
+  return 5;
 }

+ 1 - 1
Tests/SimpleInstall/foo.h

@@ -3,7 +3,7 @@ extern "C" {
 #endif
 
 extern char* foo;
-extern int SomeFunctionInFoo(int i);
+extern int SomeFunctionInFoo();
 
 #ifdef __cplusplus
 }

+ 1 - 1
Tests/SimpleInstall/inst.cxx

@@ -18,5 +18,5 @@ int main ()
     return 1;
     }
   printf("Foo: %s\n", foo);
-  return SomeFunctionInFoo(-5);
+  return SomeFunctionInFoo()-5;
 }

+ 2 - 2
Tests/SimpleInstallS2/foo.c

@@ -1,6 +1,6 @@
 char* foo = "Foo";
 
-int SomeFunctionInFoo(int i)
+int SomeFunctionInFoo()
 {
-  return i + 5;
+  return 5;
 }

+ 1 - 1
Tests/SimpleInstallS2/foo.h

@@ -3,7 +3,7 @@ extern "C" {
 #endif
 
 extern char* foo;
-extern int SomeFunctionInFoo(int i);
+extern int SomeFunctionInFoo();
 
 #ifdef __cplusplus
 }

+ 1 - 1
Tests/SimpleInstallS2/inst.cxx

@@ -18,5 +18,5 @@ int main ()
     return 1;
     }
   printf("Foo: %s\n", foo);
-  return SomeFunctionInFoo(-5);
+  return SomeFunctionInFoo()-5;
 }