summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/assign-warn-2.c
diff options
context:
space:
mode:
authormanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>2008-08-28 19:34:36 +0000
committermanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>2008-08-28 19:34:36 +0000
commit3230bfa8e6bc4569fba44d8c2e4807ddf2a8f06e (patch)
tree63b0322b8155dda59f3357e394cb4dd3af952625 /gcc/testsuite/gcc.dg/assign-warn-2.c
parentf6c7e4afa3fdbe93f5670349dd03ca5733ef4bef (diff)
downloadgcc-3230bfa8e6bc4569fba44d8c2e4807ddf2a8f06e.tar.gz
2008-08-28 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
PR c/30949 * c-typeck.c (convert_for_assignment): Give a note describing what was passed and what was expected. testsuite/ * gcc.dg/pr30949.c: New. * gcc.dg/transparent-union-1.c: Update. * gcc.dg/cleanup-1.c: Update. * gcc.dg/assign-warn-2.c: Update. * gcc.dg/conv-2.c: Update. * gcc.dg/Wpointer-sign-pedantic.c: Update. * gcc.dg/Wpointer-sign-Wall.c: Update. * gcc.dg/assign-warn-1.c: Update. * gcc.dg/dfp/composite-type.c: Update. * gcc.dg/noncompile/20020213-1.c: Update. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@139729 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/assign-warn-2.c')
-rw-r--r--gcc/testsuite/gcc.dg/assign-warn-2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/assign-warn-2.c b/gcc/testsuite/gcc.dg/assign-warn-2.c
index 0ef6ebe33b3..4656961f6c4 100644
--- a/gcc/testsuite/gcc.dg/assign-warn-2.c
+++ b/gcc/testsuite/gcc.dg/assign-warn-2.c
@@ -122,3 +122,4 @@ TESTARP(istrb, int, struct s); /* { dg-error "incompatible type for argument 1 o
TESTASS(istrc, int, struct s); /* { dg-error "incompatible types in assignment" } */
TESTINI(istrd, int, struct s); /* { dg-error "incompatible types in initialization" } */
TESTRET(istre, int, struct s); /* { dg-error "incompatible types in return" } */
+/* { dg-message "note: expected '\[^'\n\]*' but argument is of type '\[^'\n\]*'" "note: expected" { target *-*-* } 0 } */