Commit c123d98f by Dirk Mueller Committed by Dirk Mueller

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
parent 211ea300
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> 2007-03-15 Richard Sandiford <richard@codesourcery.com>
* gcc.dg/cpp/assert4.c: Treat VxWorks as a unix target. * gcc.dg/cpp/assert4.c: Treat VxWorks as a unix target.
// { dg-options "-Wconversion" } // { dg-options "-Wconversion" }
void foo(const char *); void foo(const char *);
void bar() { foo(false); } // { dg-warning "pointer type argument" } void bar() { foo(false); } // { dg-warning "pointer type for argument" }
...@@ -7,7 +7,7 @@ void ...@@ -7,7 +7,7 @@ void
f (int x) f (int x)
{ {
if (x) if (x)
; /* { dg-warning "warning: empty body in an" } */ ; /* { dg-warning "warning: suggest braces around empty body in an" } */
if (x) if (x)
; /* By design we don't warn in this case. */ ; /* By design we don't warn in this case. */
else else
...@@ -15,7 +15,7 @@ f (int x) ...@@ -15,7 +15,7 @@ f (int x)
if (x) if (x)
(void)0; (void)0;
else else
; /* { dg-warning "warning: empty body in an" } */ ; /* { dg-warning "warning: suggest braces around empty body in an" } */
if (x) if (x)
(void)0; (void)0;
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment