diff options
Diffstat (limited to 'test cases/linuxlike/3 linker script')
| -rw-r--r-- | test cases/linuxlike/3 linker script/bob.c | 4 | ||||
| -rw-r--r-- | test cases/linuxlike/3 linker script/bob.h | 2 | ||||
| -rw-r--r-- | test cases/linuxlike/3 linker script/prog.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/test cases/linuxlike/3 linker script/bob.c b/test cases/linuxlike/3 linker script/bob.c index 7b3ed47cb..50e29c753 100644 --- a/test cases/linuxlike/3 linker script/bob.c +++ b/test cases/linuxlike/3 linker script/bob.c @@ -1,9 +1,9 @@ #include"bob.h" -int hiddenFunction() { +int hiddenFunction(void) { return 42; } -int bobMcBob() { +int bobMcBob(void) { return hiddenFunction(); } diff --git a/test cases/linuxlike/3 linker script/bob.h b/test cases/linuxlike/3 linker script/bob.h index b29331e79..351e2fc60 100644 --- a/test cases/linuxlike/3 linker script/bob.h +++ b/test cases/linuxlike/3 linker script/bob.h @@ -1,6 +1,6 @@ #ifndef BOB_H_ #define BOB_H_ -int bobMcBob(); +int bobMcBob(void); #endif diff --git a/test cases/linuxlike/3 linker script/prog.c b/test cases/linuxlike/3 linker script/prog.c index 2c9b01b02..b010b1587 100644 --- a/test cases/linuxlike/3 linker script/prog.c +++ b/test cases/linuxlike/3 linker script/prog.c @@ -1,5 +1,5 @@ #include"bob.h" -int main() { +int main(void) { return bobMcBob() != 42; } |
