diff options
author | Berk Geveci <berk.geveci@kitware.com> | 2004-02-04 09:42:50 -0500 |
---|---|---|
committer | Berk Geveci <berk.geveci@kitware.com> | 2004-02-04 09:42:50 -0500 |
commit | 2522153e5976e859b167513948bc8f2b7c87924f (patch) | |
tree | c58a3b12915349a54c07f9f9dc19e63f833e3777 /Tests | |
parent | e6de1efcb8651d53bf03bc5cdeca124d6966e738 (diff) | |
download | cmake-2522153e5976e859b167513948bc8f2b7c87924f.tar.gz |
ENH: Fix test on HP-UX
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/SimpleInstall/foo.c | 4 | ||||
-rw-r--r-- | Tests/SimpleInstall/foo.h | 2 | ||||
-rw-r--r-- | Tests/SimpleInstall/inst.cxx | 2 | ||||
-rw-r--r-- | Tests/SimpleInstallS2/foo.c | 4 | ||||
-rw-r--r-- | Tests/SimpleInstallS2/foo.h | 2 | ||||
-rw-r--r-- | Tests/SimpleInstallS2/inst.cxx | 2 |
6 files changed, 8 insertions, 8 deletions
diff --git a/Tests/SimpleInstall/foo.c b/Tests/SimpleInstall/foo.c index 5c7c3e6318..45d5b2bf22 100644 --- a/Tests/SimpleInstall/foo.c +++ b/Tests/SimpleInstall/foo.c @@ -1,6 +1,6 @@ char* foo = "Foo"; -int SomeFunctionInFoo(int i) +int SomeFunctionInFoo() { - return i + 5; + return 5; } diff --git a/Tests/SimpleInstall/foo.h b/Tests/SimpleInstall/foo.h index bba9022e58..2708baffe9 100644 --- a/Tests/SimpleInstall/foo.h +++ b/Tests/SimpleInstall/foo.h @@ -3,7 +3,7 @@ extern "C" { #endif extern char* foo; -extern int SomeFunctionInFoo(int i); +extern int SomeFunctionInFoo(); #ifdef __cplusplus } diff --git a/Tests/SimpleInstall/inst.cxx b/Tests/SimpleInstall/inst.cxx index 47d73c0a3a..84f2adbe72 100644 --- a/Tests/SimpleInstall/inst.cxx +++ b/Tests/SimpleInstall/inst.cxx @@ -18,5 +18,5 @@ int main () return 1; } printf("Foo: %s\n", foo); - return SomeFunctionInFoo(-5); + return SomeFunctionInFoo()-5; } diff --git a/Tests/SimpleInstallS2/foo.c b/Tests/SimpleInstallS2/foo.c index 5c7c3e6318..45d5b2bf22 100644 --- a/Tests/SimpleInstallS2/foo.c +++ b/Tests/SimpleInstallS2/foo.c @@ -1,6 +1,6 @@ char* foo = "Foo"; -int SomeFunctionInFoo(int i) +int SomeFunctionInFoo() { - return i + 5; + return 5; } diff --git a/Tests/SimpleInstallS2/foo.h b/Tests/SimpleInstallS2/foo.h index bba9022e58..2708baffe9 100644 --- a/Tests/SimpleInstallS2/foo.h +++ b/Tests/SimpleInstallS2/foo.h @@ -3,7 +3,7 @@ extern "C" { #endif extern char* foo; -extern int SomeFunctionInFoo(int i); +extern int SomeFunctionInFoo(); #ifdef __cplusplus } diff --git a/Tests/SimpleInstallS2/inst.cxx b/Tests/SimpleInstallS2/inst.cxx index 47d73c0a3a..84f2adbe72 100644 --- a/Tests/SimpleInstallS2/inst.cxx +++ b/Tests/SimpleInstallS2/inst.cxx @@ -18,5 +18,5 @@ int main () return 1; } printf("Foo: %s\n", foo); - return SomeFunctionInFoo(-5); + return SomeFunctionInFoo()-5; } |