PR libstdc++/88607 add tests using -finput-charset=ascii
authorJonathan Wakely <jwakely@redhat.com>
Sun, 6 Jan 2019 00:49:11 +0000 (00:49 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Sun, 6 Jan 2019 00:49:11 +0000 (00:49 +0000)
This verifies that the <bits/extc++.h> 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

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/17_intro/headers/c++1998/charset.cc [new file with mode: 0644]
libstdc++-v3/testsuite/17_intro/headers/c++2011/charset.cc [new file with mode: 0644]
libstdc++-v3/testsuite/17_intro/headers/c++2014/charset.cc [new file with mode: 0644]
libstdc++-v3/testsuite/17_intro/headers/c++2017/charset.cc [new file with mode: 0644]
libstdc++-v3/testsuite/17_intro/headers/c++2020/charset.cc [new file with mode: 0644]

index b1a05c748718f36881bd2ce2e817613186bfb8eb..48f1464b2184351b60196e1d7c43b30e9a5fb4aa 100644 (file)
@@ -1,3 +1,12 @@
+2019-01-06  Jonathan Wakely  <jwakely@redhat.com>
+
+       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  <jwakely@redhat.com>
 
        * 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 (file)
index 0000000..864c64e
--- /dev/null
@@ -0,0 +1,4 @@
+// { dg-options "-finput-charset=ascii" }
+// { dg-do compile }
+
+#include <bits/extc++.h>
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 (file)
index 0000000..864c64e
--- /dev/null
@@ -0,0 +1,4 @@
+// { dg-options "-finput-charset=ascii" }
+// { dg-do compile }
+
+#include <bits/extc++.h>
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 (file)
index 0000000..864c64e
--- /dev/null
@@ -0,0 +1,4 @@
+// { dg-options "-finput-charset=ascii" }
+// { dg-do compile }
+
+#include <bits/extc++.h>
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 (file)
index 0000000..864c64e
--- /dev/null
@@ -0,0 +1,4 @@
+// { dg-options "-finput-charset=ascii" }
+// { dg-do compile }
+
+#include <bits/extc++.h>
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 (file)
index 0000000..864c64e
--- /dev/null
@@ -0,0 +1,4 @@
+// { dg-options "-finput-charset=ascii" }
+// { dg-do compile }
+
+#include <bits/extc++.h>