toolkit/func/core/pkg_gcc/10-gcc-build-simple.sh

10 lines
196 B
Bash
Raw Normal View History

2021-07-05 06:50:25 +00:00
#!/bin/bash
r_log "gcc" "Ensure gcc can build a simple program"
OUTPUTPROG=$(mktemp)
gcc ./common/files/hello.c -o $OUTPUTPROG
$OUTPUTPROG | grep -q "Hello!"
r_checkExitStatus $?
rm $OUTPUTPROG