You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
367 B
19 lines
367 B
#!/bin/bash
|
|
# Author: Dries Verachtert <dries.verachtert@dries.eu>
|
|
|
|
t_Log "Running $0 - test gcc-c++ with a hello world program"
|
|
|
|
CPPBINARY=`mktemp`
|
|
|
|
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
|