Skip to content
Snippets Groups Projects
Commit 3fee058f authored by Fabian Arrotin's avatar Fabian Arrotin Committed by GitHub
Browse files

Revert "a test for gcc-c++: compile and run a hello world program"

parent 478e59a7
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
# Author: Dries Verachtert <dries.verachtert@dries.eu>
t_Log "$0 - installing gcc-c++"
t_InstallPackage gcc-c++
#!/bin/bash
# Author: Dries Verachtert <dries.verachtert@dries.eu>
t_Log "Running $0 - test gcc-c++ with a hello world program"
CPPBINARY=`mktemp -q --suffix=.gcc-c++_test`
cat <<EOF | g++ -x c++ -o $CPPBINARY -
#include <iostream>
int main(int argc, char** argv) {
std::cout << "Hello world!" << std::endl;
}
EOF
$CPPBINARY | grep -q "Hello world"
t_CheckExitStatus $?
rm -f $CPPBINARY
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment