2 /* { dg-do compile } */
3 /* { dg-options "-Wall" } */
7 return ptr
== "foo"; /* { dg-warning "comparison with string" } */
12 return "foo" != (const char*)0;
17 return "foo" == (const char*)0;
22 return (const char*)0 != "foo";
27 return (const char*)0 == "foo";