This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Testsuite tweak
- To: gcc-patches at gcc dot gnu dot org
- Subject: Testsuite tweak
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Date: Sat, 5 May 2001 20:12:43 +0100
The sysmac{1,2}.c tests would fail if you built with disable-checking.
This has been the case since I made some diagnostics in cpp
enable-checking only, on Mark's request.
Fixed below, mainline and branch.
Neil.
* gcc.dg/cpp/sysmac1.c,sysmac2.c: Return to original file.
Index: testsuite/gcc.dg/cpp/sysmac1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/cpp/sysmac1.c,v
retrieving revision 1.1
diff -u -p -r1.1 sysmac1.c
--- sysmac1.c 2001/02/14 07:39:40 1.1
+++ sysmac1.c 2001/05/05 18:10:02
@@ -18,7 +18,7 @@
#define sys_str(x) x
#define sys_foo(x, y...) bar (x, ##y)
-# 22 "bar.c" 2 /* { dg-warning "expected to return" } */
+# 22 "sysmac1.c" 2
#if uint /* { dg-warning "traditional C rejects" } */
#endif
Index: testsuite/gcc.dg/cpp/sysmac2.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/cpp/sysmac2.c,v
retrieving revision 1.1
diff -u -p -r1.1 sysmac2.c
--- sysmac2.c 2001/02/14 07:39:40 1.1
+++ sysmac2.c 2001/05/05 18:10:02
@@ -18,7 +18,7 @@
#define sys_fl 1.0f
#define sys_ld 1.0L
-# 22 "bar.c" 2 /* { dg-warning "expected to return" } */
+# 22 "sysmac2.c" 2
int
main ()