diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2008-08-28 19:34:36 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2008-08-28 19:34:36 +0000 |
commit | 1e053dfe577da6b8b252d33b0df8eee62a8ad1e6 (patch) | |
tree | 63b0322b8155dda59f3357e394cb4dd3af952625 /gcc/testsuite/gcc.dg/assign-warn-2.c | |
parent | 31cb596a6b572773d25e7196ff19e126a52ca1e4 (diff) | |
download | gcc-1e053dfe577da6b8b252d33b0df8eee62a8ad1e6.zip gcc-1e053dfe577da6b8b252d33b0df8eee62a8ad1e6.tar.gz gcc-1e053dfe577da6b8b252d33b0df8eee62a8ad1e6.tar.bz2 |
re PR c/30949 ("incompatible pointer type" warning does not point to declaration)
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.
From-SVN: r139729
Diffstat (limited to 'gcc/testsuite/gcc.dg/assign-warn-2.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/assign-warn-2.c | 1 |
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 0ef6ebe..4656961 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 } */ |