From 76fc254700190cd337fc0b1225b94443a24296e9 Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Apr 17 2020 16:32:33 +0000 Subject: tests/p_annobin: Specify the language to the compiler Since we are feeding code to gcc through standard input, it cannot determine the language via the file extension. Thus, we explicitly tell GCC which langauges we are compiling for. --- diff --git a/tests/p_annobin/10-test_annobin-gcc.sh b/tests/p_annobin/10-test_annobin-gcc.sh index 2ea50bc..2b6e3af 100755 --- a/tests/p_annobin/10-test_annobin-gcc.sh +++ b/tests/p_annobin/10-test_annobin-gcc.sh @@ -12,7 +12,7 @@ t_Log "Running $0 - build a hello world program with gcc using annobin" BUILTPROG=$(mktemp) -cat < int main() { printf("Hello World!\n"); diff --git a/tests/p_annobin/20-test_annobin-gcc-c++.sh b/tests/p_annobin/20-test_annobin-gcc-c++.sh index 0f55a75..761cdf3 100755 --- a/tests/p_annobin/20-test_annobin-gcc-c++.sh +++ b/tests/p_annobin/20-test_annobin-gcc-c++.sh @@ -12,7 +12,7 @@ t_Log "Running $0 - build a hello world program with gcc-c++ using annobin" BUILTPROG=$(mktemp) -cat < int main() { std::cout << "Hello World!\n";