From: Jonathan Wakely Date: Sun, 6 Jan 2019 00:49:11 +0000 (+0000) Subject: PR libstdc++/88607 add tests using -finput-charset=ascii X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ecaad8d5cf474bd97705ab68384cf27e12f179f5;p=gcc.git PR libstdc++/88607 add tests using -finput-charset=ascii This verifies that the header can be compiled with ASCII as the input character set. PR libstdc++/88607 * testsuite/17_intro/headers/c++1998/charset.cc: New test. * testsuite/17_intro/headers/c++2011/charset.cc: New test. * testsuite/17_intro/headers/c++2014/charset.cc: New test. * testsuite/17_intro/headers/c++2017/charset.cc: New test. * testsuite/17_intro/headers/c++2020/charset.cc: New test. From-SVN: r267607 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index b1a05c74871..48f1464b218 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,12 @@ +2019-01-06 Jonathan Wakely + + PR libstdc++/88607 + * testsuite/17_intro/headers/c++1998/charset.cc: New test. + * testsuite/17_intro/headers/c++2011/charset.cc: New test. + * testsuite/17_intro/headers/c++2014/charset.cc: New test. + * testsuite/17_intro/headers/c++2017/charset.cc: New test. + * testsuite/17_intro/headers/c++2020/charset.cc: New test. + 2019-01-05 Jonathan Wakely * include/bits/fs_fwd.h (__file_clock): Define new clock. diff --git a/libstdc++-v3/testsuite/17_intro/headers/c++1998/charset.cc b/libstdc++-v3/testsuite/17_intro/headers/c++1998/charset.cc new file mode 100644 index 00000000000..864c64ef831 --- /dev/null +++ b/libstdc++-v3/testsuite/17_intro/headers/c++1998/charset.cc @@ -0,0 +1,4 @@ +// { dg-options "-finput-charset=ascii" } +// { dg-do compile } + +#include diff --git a/libstdc++-v3/testsuite/17_intro/headers/c++2011/charset.cc b/libstdc++-v3/testsuite/17_intro/headers/c++2011/charset.cc new file mode 100644 index 00000000000..864c64ef831 --- /dev/null +++ b/libstdc++-v3/testsuite/17_intro/headers/c++2011/charset.cc @@ -0,0 +1,4 @@ +// { dg-options "-finput-charset=ascii" } +// { dg-do compile } + +#include diff --git a/libstdc++-v3/testsuite/17_intro/headers/c++2014/charset.cc b/libstdc++-v3/testsuite/17_intro/headers/c++2014/charset.cc new file mode 100644 index 00000000000..864c64ef831 --- /dev/null +++ b/libstdc++-v3/testsuite/17_intro/headers/c++2014/charset.cc @@ -0,0 +1,4 @@ +// { dg-options "-finput-charset=ascii" } +// { dg-do compile } + +#include diff --git a/libstdc++-v3/testsuite/17_intro/headers/c++2017/charset.cc b/libstdc++-v3/testsuite/17_intro/headers/c++2017/charset.cc new file mode 100644 index 00000000000..864c64ef831 --- /dev/null +++ b/libstdc++-v3/testsuite/17_intro/headers/c++2017/charset.cc @@ -0,0 +1,4 @@ +// { dg-options "-finput-charset=ascii" } +// { dg-do compile } + +#include diff --git a/libstdc++-v3/testsuite/17_intro/headers/c++2020/charset.cc b/libstdc++-v3/testsuite/17_intro/headers/c++2020/charset.cc new file mode 100644 index 00000000000..864c64ef831 --- /dev/null +++ b/libstdc++-v3/testsuite/17_intro/headers/c++2020/charset.cc @@ -0,0 +1,4 @@ +// { dg-options "-finput-charset=ascii" } +// { dg-do compile } + +#include