summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/warn-1.c
diff options
context:
space:
mode:
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-08 10:21:42 +0000
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-08 10:21:42 +0000
commit245d6740b2c670a2b1575199bbf091bca5bfd5c0 (patch)
tree25377bd40c2e1609d1b911592b00902eb3f045f2 /gcc/testsuite/gcc.dg/warn-1.c
parent484e7fa04d75cf133913d8a79995bd700d9ee542 (diff)
downloadgcc-245d6740b2c670a2b1575199bbf091bca5bfd5c0.tar.gz
* c-typeck.c (enum impl_conv): New.
(convert_for_assignment): Use it. Take tree for function called instead of its name. Handle ObjC selectors for diagnostics at start of function. Select diagnostic text within the function using full sentences for diagnsotics. Use %qE to name functions in diagnostics. (convert_arguments, build_modify_expr, c_convert_parm_for_inlining, digest_init, c_finish_return): Update callers to convert_for_assignment. (warn_for_assignment): Remove. testsuite: * gcc.dg/assign-warn-1.c, gcc.dg/assign-warn-2.c: New tests. * gcc.dg/warn-1.c, gcc.dg/noncompile/20020213-1.c, objc.dg/method-9.m: Update expected diagnostics. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88741 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/warn-1.c')
-rw-r--r--gcc/testsuite/gcc.dg/warn-1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/warn-1.c b/gcc/testsuite/gcc.dg/warn-1.c
index ce35b41e941..dc2cd0e7c71 100644
--- a/gcc/testsuite/gcc.dg/warn-1.c
+++ b/gcc/testsuite/gcc.dg/warn-1.c
@@ -12,5 +12,5 @@ void bar (void)
{
void *vp;
- foo (vp); /* { dg-warning "passing arg 1 of" } */
+ foo (vp); /* { dg-warning "passing argument 1 of" } */
}