diff options
Diffstat (limited to 'tests/001.sh')
| -rw-r--r-- | tests/001.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/001.sh b/tests/001.sh new file mode 100644 index 0000000..9245cf6 --- /dev/null +++ b/tests/001.sh @@ -0,0 +1,14 @@ +cat <<'EOF' > main.c +int main() { + return 42; +} +EOF + +"$p4dcc" < main.c > main.s +gcc -o a.out main.s +set +e +./a.out +exit_code=$? +set -e + +test $exit_code -eq 42 |
