Wconversion2.C: Fix typo.

2007-03-15  Dirk Mueller  <dmueller@suse.de>

       * g++.dg/warn/Wconversion2.C: Fix typo.
       * gcc.dg/if-empty-1.c: Ditto.

From-SVN: r122949
This commit is contained in:
Dirk Mueller 2007-03-15 09:11:30 +00:00 committed by Dirk Mueller
parent 211ea3009d
commit c123d98fc6
3 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2007-03-15 Dirk Mueller <dmueller@suse.de>
* g++.dg/warn/Wconversion2.C: Fix typo.
* gcc.dg/if-empty-1.c: Ditto.
2007-03-15 Richard Sandiford <richard@codesourcery.com>
* gcc.dg/cpp/assert4.c: Treat VxWorks as a unix target.

View File

@ -1,4 +1,4 @@
// { dg-options "-Wconversion" }
void foo(const char *);
void bar() { foo(false); } // { dg-warning "pointer type argument" }
void bar() { foo(false); } // { dg-warning "pointer type for argument" }

View File

@ -7,7 +7,7 @@ void
f (int x)
{
if (x)
; /* { dg-warning "warning: empty body in an" } */
; /* { dg-warning "warning: suggest braces around empty body in an" } */
if (x)
; /* By design we don't warn in this case. */
else
@ -15,7 +15,7 @@ f (int x)
if (x)
(void)0;
else
; /* { dg-warning "warning: empty body in an" } */
; /* { dg-warning "warning: suggest braces around empty body in an" } */
if (x)
(void)0;
else