re PR other/36901 (pedwarn() + -pedantic-errors + -w (inhibit_warnings) should not emit errors)

2008-08-10  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

	PR 36901
testsuite/
	* gcc.dg/pr36901.h: Do not depend on limits.h.
	* gcc.dg/pr36901-3.c: Update.
	* gcc.dg/pr36901-4.c: Update.

From-SVN: r138932
parent 77d45108
2008-08-10 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
PR 36901
* gcc.dg/pr36901.h: Do not depend on limits.h.
* gcc.dg/pr36901-3.c: Update.
* gcc.dg/pr36901-4.c: Update.
2008-08-09 Andrew Pinski <andrew_pinski@playstation.sony.com>
PR middle-end/36238
......
......@@ -6,5 +6,4 @@ void foo(void)
int s = sc;
}
/* { dg-message "file included" "In file included" { target *-*-* } 0 } */
/* { dg-warning "overflow" "overflow" { target *-*-* } 0 } */
/* { dg-error "overflow" "overflow" { target *-*-* } 0 } */
/* { dg-error "ordered comparison of pointer with integer zero" "pedantic error" { target *-*-* } 0 } */
......@@ -6,6 +6,4 @@ void foo(void)
int s = sc;
}
/* { dg-message "from " "In file included" { target *-*-* } 0 } */
/* { dg-warning "overflow" "overflow" { target *-*-* } 0 } */
/* { dg-error "overflow" "overflow" { target *-*-* } 0 } */
/* { dg-error "#include_next is a GCC extension" "#include_next" { target *-*-* } 0 } */
/* { dg-error "ordered comparison of pointer with integer zero" "pedantic error" { target *-*-* } 0 } */
#include <limits.h>
static int sc = INT_MAX + 1;
int sc = (&sc > 0);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment