]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Add dg-output to two tests
authorJonathan Wakely <jwakely@redhat.com>
Mon, 11 Dec 2023 22:58:46 +0000 (22:58 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 14 Dec 2023 22:04:43 +0000 (22:04 +0000)
These tests are expected to run interactively, with the output checked
by eye. Nobody ever does that, but we can at least use dg-output to
check that the output is as expected.

libstdc++-v3/ChangeLog:

* testsuite/27_io/objects/char/2.cc: Use dg-output.
* testsuite/27_io/objects/wchar_t/2.cc: Use dg-output.

libstdc++-v3/testsuite/27_io/objects/char/2.cc
libstdc++-v3/testsuite/27_io/objects/wchar_t/2.cc

index b6c49bac6f3880302bc6ec6310f9305350715144..9026a3cbad8642ab5f64312b6263cacaa46c3c28 100644 (file)
@@ -38,6 +38,8 @@ void test04()
   cout.flush();
 }
 
+// { dg-output "hello fine world" }
+
 int 
 main()
 {
index 52a21b8dc22d43f6ae4b5c53cd70f9a11d422ab5..2e47aba7c3c2b8826fbc9f0767e61d96e9a886b2 100644 (file)
@@ -38,6 +38,8 @@ void test04()
   wcout.flush();
 }
 
+// { dg-output "hello fine world" }
+
 int 
 main()
 {