public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH][pushed] Include tests that are not executed
@ 2022-01-17 11:12 Martin Liška
  0 siblings, 0 replies; only message in thread
From: Martin Liška @ 2022-01-17 11:12 UTC (permalink / raw)
  To: GCC Patches

[-- Attachment #1: Type: text/plain, Size: 117 bytes --]

The following tests are not executed because they have a bad
filename extension.

Fixed and pushed to master.

Martin

[-- Attachment #2: 0002-Make-the-tests-working.patch --]
[-- Type: text/x-patch, Size: 1407 bytes --]

From 803813918d6e6e02d4ebae6cb72cd8bb69c6133a Mon Sep 17 00:00:00 2001
From: Martin Liska <mliska@suse.cz>
Date: Fri, 14 Jan 2022 13:52:50 +0100
Subject: [PATCH 2/2] Make the tests working.

---
 gcc/testsuite/g++.dg/uninit-pred-loop-1_b.C | 2 +-
 gcc/testsuite/g++.dg/uninit-pred-loop-1_c.C | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/gcc/testsuite/g++.dg/uninit-pred-loop-1_b.C b/gcc/testsuite/g++.dg/uninit-pred-loop-1_b.C
index e4ef3d22c06..b17b9360192 100644
--- a/gcc/testsuite/g++.dg/uninit-pred-loop-1_b.C
+++ b/gcc/testsuite/g++.dg/uninit-pred-loop-1_b.C
@@ -11,7 +11,7 @@ int foo(int n)
        _err = bar();
      }
      _err; 
-   }); /* { dg-warning "uninitialized" "warn on _err" } */
+   });
 
    if (err == 0) return 17; 
  }
diff --git a/gcc/testsuite/g++.dg/uninit-pred-loop-1_c.C b/gcc/testsuite/g++.dg/uninit-pred-loop-1_c.C
index 7f6b41d31ff..711812aae1b 100644
--- a/gcc/testsuite/g++.dg/uninit-pred-loop-1_c.C
+++ b/gcc/testsuite/g++.dg/uninit-pred-loop-1_c.C
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-Wuninitialized -O2" } */
+/* { dg-options "-Wuninitialized -O2 -std=c++98" } */
 
 extern int bar();
 int foo(int n, int m)
@@ -15,7 +15,7 @@ int foo(int n, int m)
      _err; 
    }); 
 
-   if (err == 0) return 17; }); /* { dg-warning "uninitialized" "warn on _err" } */
+   if (err == 0) return 17;
  }
 
  return 18;
-- 
2.34.1


[-- Attachment #3: 0001-Rename-test-cases-that-are-not-executed.patch --]
[-- Type: text/x-patch, Size: 1847 bytes --]

From 07ae64665b305758762cc5ddd6775a25fadbdf76 Mon Sep 17 00:00:00 2001
From: Martin Liska <mliska@suse.cz>
Date: Fri, 14 Jan 2022 13:40:58 +0100
Subject: [PATCH 1/2] Rename test-cases that are not executed.

---
 .../g++.dg/{uninit-pred-loop-1_a.cc => uninit-pred-loop-1_a.C}    | 0
 .../g++.dg/{uninit-pred-loop-1_b.cc => uninit-pred-loop-1_b.C}    | 0
 .../g++.dg/{uninit-pred-loop-1_c.cc => uninit-pred-loop-1_c.C}    | 0
 .../g++.dg/{uninit-pred-loop_1.cc => uninit-pred-loop_1.C}        | 0
 4 files changed, 0 insertions(+), 0 deletions(-)
 rename gcc/testsuite/g++.dg/{uninit-pred-loop-1_a.cc => uninit-pred-loop-1_a.C} (100%)
 rename gcc/testsuite/g++.dg/{uninit-pred-loop-1_b.cc => uninit-pred-loop-1_b.C} (100%)
 rename gcc/testsuite/g++.dg/{uninit-pred-loop-1_c.cc => uninit-pred-loop-1_c.C} (100%)
 rename gcc/testsuite/g++.dg/{uninit-pred-loop_1.cc => uninit-pred-loop_1.C} (100%)

diff --git a/gcc/testsuite/g++.dg/uninit-pred-loop-1_a.cc b/gcc/testsuite/g++.dg/uninit-pred-loop-1_a.C
similarity index 100%
rename from gcc/testsuite/g++.dg/uninit-pred-loop-1_a.cc
rename to gcc/testsuite/g++.dg/uninit-pred-loop-1_a.C
diff --git a/gcc/testsuite/g++.dg/uninit-pred-loop-1_b.cc b/gcc/testsuite/g++.dg/uninit-pred-loop-1_b.C
similarity index 100%
rename from gcc/testsuite/g++.dg/uninit-pred-loop-1_b.cc
rename to gcc/testsuite/g++.dg/uninit-pred-loop-1_b.C
diff --git a/gcc/testsuite/g++.dg/uninit-pred-loop-1_c.cc b/gcc/testsuite/g++.dg/uninit-pred-loop-1_c.C
similarity index 100%
rename from gcc/testsuite/g++.dg/uninit-pred-loop-1_c.cc
rename to gcc/testsuite/g++.dg/uninit-pred-loop-1_c.C
diff --git a/gcc/testsuite/g++.dg/uninit-pred-loop_1.cc b/gcc/testsuite/g++.dg/uninit-pred-loop_1.C
similarity index 100%
rename from gcc/testsuite/g++.dg/uninit-pred-loop_1.cc
rename to gcc/testsuite/g++.dg/uninit-pred-loop_1.C
-- 
2.34.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-17 11:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-17 11:12 [PATCH][pushed] Include tests that are not executed Martin Liška

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).