From e09bdbe5c47f13a172ea42d31c2d8938c0d333b4 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sun, 27 Oct 2019 00:29:18 -0400 Subject: [PATCH] Add C++17 test program --- Filelist.txt | 1 + TestPrograms/test_cxx11.cxx | 1 + TestPrograms/test_cxx17.cxx | 5 +++++ 3 files changed, 7 insertions(+) create mode 100644 TestPrograms/test_cxx17.cxx diff --git a/Filelist.txt b/Filelist.txt index 93261986..06cefca7 100644 --- a/Filelist.txt +++ b/Filelist.txt @@ -592,6 +592,7 @@ TestPrograms/test_arm_sm4.cxx TestPrograms/test_asm_mixed.cxx TestPrograms/test_cxx.cxx TestPrograms/test_cxx11.cxx +TestPrograms/test_cxx17.cxx TestPrograms/test_glibc.cxx TestPrograms/test_newlib.cxx TestPrograms/test_ppc_aes.cxx diff --git a/TestPrograms/test_cxx11.cxx b/TestPrograms/test_cxx11.cxx index 33539acd..5e90412b 100644 --- a/TestPrograms/test_cxx11.cxx +++ b/TestPrograms/test_cxx11.cxx @@ -2,5 +2,6 @@ #include int main(int argc, char* argv[]) { + std::forward_list x; return 0; } diff --git a/TestPrograms/test_cxx17.cxx b/TestPrograms/test_cxx17.cxx new file mode 100644 index 00000000..89059a13 --- /dev/null +++ b/TestPrograms/test_cxx17.cxx @@ -0,0 +1,5 @@ +#include +int main(int argc, char* argv[]) +{ + return 0 == std::uncaught_exceptions() ? 0 : 1; +} \ No newline at end of file