-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
handle exit with uninitialized value
- Loading branch information
1 parent
099db54
commit b5f5af6
Showing
5 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
tests/expected_output/clang-6.0-x86_64-pc-linux-gnu/unitialized_exit_status.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
|
||
Runtime error: exit value is uninitialized | ||
|
||
Main is returning an uninitialized value or exit has been passed an uninitialized value. | ||
|
6 changes: 6 additions & 0 deletions
6
tests/expected_output/clang-7.0-x86_64-pc-linux-gnu/unitialized_exit_status.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
|
||
Runtime error: exit value is uninitialized | ||
|
||
Main is returning an uninitialized value or exit has been passed an uninitialized value. | ||
|
6 changes: 6 additions & 0 deletions
6
tests/expected_output/clang-8.0-x86_64-pc-linux-gnu/unitialized_exit_status.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
|
||
Runtime error: exit value is uninitialized | ||
|
||
Main is returning an uninitialized value or exit has been passed an uninitialized value. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// A simple C program that attempts to be punny | ||
// Written 23/2/2017 | ||
// by Angela Finlayson ([email protected]) | ||
// for COMP1511 Lab 01 Exercise 1 | ||
|
||
#include <stdio.h> | ||
|
||
int main(int argc, char *argv[]) { | ||
int a[2]; | ||
a[0] = 0; | ||
printf("Hello, it is good to C you!\n"); | ||
|
||
return a[argc]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters