re PR c/37271 (gcc.dg/pr37186.c doesn't work)

2008-08-31  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c/37271
	* gcc.dg/pr37186.c: Add dg-message command for line 5.

From-SVN: r139833
This commit is contained in:
Paolo Carlini 2008-08-31 15:09:38 +00:00 committed by Paolo Carlini
parent eb829078a3
commit f885a45b90
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-08-31 Paolo Carlini <paolo.carlini@oracle.com>
PR c/37271
* gcc.dg/pr37186.c: Add dg-message command for line 5.
2008-08-31 Richard Guenther <rguenther@suse.de>
PR middle-end/37289

View File

@ -2,7 +2,7 @@
/* { dg-do compile } */
/* { dg-options "-Wall -Werror -Wno-error=pointer-sign" } */
int foo(signed char *);
int foo(signed char *); /* { dg-message "note: expected 'signed char \\*' but argument is of type 'unsigned char \\*'" } */
int bar(unsigned char *p)
{
return foo(p); /* { dg-warning "pointer targets in passing argument 1 of 'foo' differ in signedness" } */