aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Carlini <paolo.carlini@oracle.com>2008-08-31 15:09:38 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2008-08-31 15:09:38 +0000
commitf885a45b90b1a06a12aed90273d5f16c9baabccf (patch)
tree8c5f1c12063a55c924de481000968cc0edc94d25
parenteb829078a3e73bfade686aad203390e5b8e9cc12 (diff)
downloadgcc-f885a45b90b1a06a12aed90273d5f16c9baabccf.zip
gcc-f885a45b90b1a06a12aed90273d5f16c9baabccf.tar.gz
gcc-f885a45b90b1a06a12aed90273d5f16c9baabccf.tar.bz2
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
-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" } */