#!/bin/sh
echo "Hello World!" > expect
gcc -Wall -Werror -o HelloWorldC HelloWorld.c
./HelloWorldC > HelloWorldC.out
diff expect HelloWorldC.out &> /dev/null && echo "C: Ok." || echo "C: Failed."
g++ -Wall -Werror -o HelloWorldCPP HelloWorld.cpp
./HelloWorldCPP > HelloWorldCPP.out
diff expect HelloWorldCPP.out &> /dev/null && echo "C++: Ok." || echo "C++: Failed."


