Skip to content

Commit

Permalink
add: preliminary test case for c++20 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
elsamuko committed Mar 19, 2020
1 parent 3fc1c96 commit 5ce0271
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,19 @@ int main() {
testWithOutput "$SRC" "$OUT"
}

function testCpp20 {
local OUT="Hello from testSimple"
local SRC="#!/usr/bin/env cppsh
#include <iostream>
#include <numbers>
int main() {
std::cout << std::pi << \"$OUT\" << std::endl;
return 0;
}
"
testWithOutput "$SRC" "$OUT"
}

doPrepare

echo "Running testSimple"
Expand All @@ -129,4 +142,7 @@ testCpp14
echo "Running testCpp17"
testCpp17

echo "Running testCpp20"
testCpp20

echo "Tests succeeded"

0 comments on commit 5ce0271

Please # to comment.