public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/marxin/heads/rename-testsuite-files)] Make the tests working.
@ 2022-01-17 11:11 Martin Liska
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Liska @ 2022-01-17 11:11 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:66b7266c1cef5e1c1775a1a83482c50c251e21f4

commit 66b7266c1cef5e1c1775a1a83482c50c251e21f4
Author: Martin Liska <mliska@suse.cz>
Date:   Fri Jan 14 13:52:50 2022 +0100

    Make the tests working.

Diff:
---
 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;


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [gcc(refs/users/marxin/heads/rename-testsuite-files)] Make the tests working.
@ 2022-01-14 14:15 Martin Liska
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Liska @ 2022-01-14 14:15 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:7f16d8a63d322b2ebf5c032f7bf932543107086c

commit 7f16d8a63d322b2ebf5c032f7bf932543107086c
Author: Martin Liska <mliska@suse.cz>
Date:   Fri Jan 14 13:52:50 2022 +0100

    Make the tests working.

Diff:
---
 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;


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-01-17 11:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-17 11:11 [gcc(refs/users/marxin/heads/rename-testsuite-files)] Make the tests working Martin Liska
  -- strict thread matches above, loose matches on Subject: below --
2022-01-14 14:15 Martin Liska

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).