aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.dg/pr37186.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 153c538..7f1501f 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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
diff --git a/gcc/testsuite/gcc.dg/pr37186.c b/gcc/testsuite/gcc.dg/pr37186.c
index 7fa52ff..bf37757 100644
--- a/gcc/testsuite/gcc.dg/pr37186.c
+++ b/gcc/testsuite/gcc.dg/pr37186.c
@@ -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" } */