diff --git a/.gitignore b/.gitignore index eb880af..38a1e99 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,5 @@ build/ hbuild/ subprojects/* !subprojects/*.wrap +ssp.cpp +ssp.bin diff --git a/script/test_single_header.sh b/script/test_single_header.sh new file mode 100755 index 0000000..61c3522 --- /dev/null +++ b/script/test_single_header.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +set -x +set -e + +python3 script/single_header_generator.py > ssp.cpp + +echo "" >> ssh.cpp +echo 'int main(){ ss::parser p{""}; p.get_next(); return 0; }' \ + >> ssp.cpp + +g++ -std=c++17 ssp.cpp -o ssp.bin -Wall -Wextra +./ssp.bin + +rm ssp.cpp ssp.bin diff --git a/test/test_single_header.sh b/test/test_single_header.sh new file mode 100755 index 0000000..0d12c59 --- /dev/null +++ b/test/test_single_header.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +set -x +set -e + +python3 script/single_header_generator.py > ssp.cpp + +echo 'int main(){ ss::parser p{""}; p.get_next(); return 0; }' \ + >> ssp.cpp + +g++ -std=c++17 ssp.cpp -o ssp.bin -Wall -Wextra +./ssp.bin + +rm ssp.cpp ssp.bin