From 5ce0271636cc8747bde217ed4e05e832d8925645 Mon Sep 17 00:00:00 2001 From: Samuel Albrecht Date: Thu, 19 Mar 2020 17:26:59 +0100 Subject: [PATCH] add: preliminary test case for c++20 compatibility --- run_tests.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/run_tests.sh b/run_tests.sh index 7b3ecb1..9ebaa31 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -109,6 +109,19 @@ int main() { testWithOutput "$SRC" "$OUT" } +function testCpp20 { + local OUT="Hello from testSimple" + local SRC="#!/usr/bin/env cppsh +#include +#include +int main() { + std::cout << std::pi << \"$OUT\" << std::endl; + return 0; +} +" + testWithOutput "$SRC" "$OUT" +} + doPrepare echo "Running testSimple" @@ -129,4 +142,7 @@ testCpp14 echo "Running testCpp17" testCpp17 +echo "Running testCpp20" +testCpp20 + echo "Tests succeeded"