main(argc, argv) --> int main(int argc, char** argv) Although we accept int, void, and char types, and pointers to same, we actually still treat everything as an int.
17 lines
492 B
Bash
Executable file
17 lines
492 B
Bash
Executable file
#!/bin/sh
|
|
rm -f test-acc
|
|
cd ..
|
|
g++ -I../include acc.cpp disassem.cpp tests/main.cpp -g -ldl -o tests/test-acc
|
|
cd tests
|
|
if [ -x "test-acc" ]; then
|
|
./test-acc -S data/returnval-ansi.c
|
|
|
|
if [ "$(uname)" = "Linux" ]; then
|
|
if [ "$(uname -m)" = "i686" ]; then
|
|
echo "Linux i686. Testing otcc-ansi.c"
|
|
./test-acc data/otcc-ansi.c data/returnval.c
|
|
echo "Linux i686. Testing otcc-ansi.c data/otcc.c"
|
|
./test-acc data/otcc-ansi.c data/otcc.c data/returnval.c
|
|
fi
|
|
fi
|
|
fi
|