diff mbox

[COMMITTED] Fix two accidentally emptied test cases

Message ID AM4PR0701MB21629706DEFDBE0AD681CFADE4D50@AM4PR0701MB2162.eurprd07.prod.outlook.com
State New
Headers show

Commit Message

Bernd Edlinger Oct. 20, 2016, 7:36 p.m. UTC
Hi!

I became aware that there are two empty files in the test suite that
are not intentionally empty:

g++.dg/warn/Wconversion-real.C: was intended to be deleted with this
commit, but accidentally only set to empty file.

r150627 | manu | 2009-08-10 19:10:50 +0200 (Mon, 10 Aug 2009) | 12 lines
Changed paths:
    M /trunk/gcc/testsuite/ChangeLog
    A /trunk/gcc/testsuite/c-c++-common
    A /trunk/gcc/testsuite/c-c++-common/Wconversion-real.c (from 
/trunk/gcc/testsuite/gcc.dg/Wconversion-real.c:150571)
    M /trunk/gcc/testsuite/g++.dg/dg.exp
    M /trunk/gcc/testsuite/g++.dg/warn/Wconversion-real.C
    D /trunk/gcc/testsuite/gcc.dg/Wconversion-real.c
    M /trunk/gcc/testsuite/gcc.dg/dg.exp
    M /trunk/gcc/testsuite/lib/target-supports.exp

2009-08-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>

testsuite/
        * gcc.dg/dg.exp: Test also c-c++-common dir.
        * g++.dg/dg.exp: Likewise.
        * g++.dg/warn/Wconversion-real.C: Delete.
        * gcc.dg/Wconversion-real.c: Move to ...
        * c-c++-common/Wconversion-real.c: ... here.
        * lib/target-supports.exp
        (check_effective_target_c,check_effective_target_c++): New.


c-c++-common/wdate-time.c, was intended to be moved to a new location
but accidentally checked in as an empty file in this commit:

r214350 | manu | 2014-08-22 20:39:16 +0200 (Fri, 22 Aug 2014) | 23 lines
Changed paths:
    M /trunk/gcc/c-family/ChangeLog
    M /trunk/gcc/c-family/c-opts.c
    M /trunk/gcc/c-family/c.opt
    M /trunk/gcc/testsuite/ChangeLog
    A /trunk/gcc/testsuite/c-c++-common/wdate-time.c (from 
/trunk/gcc/testsuite/gcc.dg/wdate-time.c:214247)
    D /trunk/gcc/testsuite/g++.dg/warn/wdate-time.C
    D /trunk/gcc/testsuite/gcc.dg/wdate-time.c

gcc/c-family/ChangeLog

2014-08-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>

	* c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
	(Wmultichar): Likewise.
	(Wdate-time): Use C-family languages instead of Common. Use CPP
	and Var.
	* c-opts.c (c_common_handle_option): Do not handle the above
	options here.
	(sanitize_cpp_opts): Likewise.

gcc/testsuite/ChangeLog:

2014-08-22  Manuel L?\195?\179pez-Ib?\195?\161?\195?\177ez 
<manu@gcc.gnu.org>

	* g++.dg/warn/wdate-time.C: Remove.
	* gcc.dg/wdate-time.c: Move from here...
	* c-c++-common/wdate-time.c: ... to here.


The attached patch fixes these accidents.
Bootstrapped and reg-tested on x86_64-pc-linux-gnu.
I think I can apply this as obvious.


Thanks
Bernd.
diff mbox

Patch

2016-10-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>

	* c-c++-common/wdate-time.c: Restored test case.
	* g++.dg/warn/Wconversion-real.C: Deleted empty file.

Index: gcc/testsuite/c-c++-common/wdate-time.c
===================================================================
--- gcc/testsuite/c-c++-common/wdate-time.c	(revision 241377)
+++ gcc/testsuite/c-c++-common/wdate-time.c	(working copy)
@@ -0,0 +1,6 @@ 
+/* { dg-do compile } */
+/* { dg-options "-Wdate-time" } */
+
+const char time[] = __TIME__;  /* { dg-warning "might prevent reproducible builds" }  */
+const char date[] = __DATE__;  /* { dg-warning "might prevent reproducible builds" }  */
+const char timestamp[] = __TIMESTAMP__;  /* { dg-warning "might prevent reproducible builds" }  */