* tree-ssa-loop-manip.c (split_loop_exit_edge): Return the new block.
[official-gcc.git] / gcc / testsuite / gcc.dg / Wstring-literal-comparison-4.c
blob27f25f3ca98241aefa58f2c2577e44e299e1d895
1 /* PR c/7776 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wall -Wno-string-literal-comparison" } */
5 int test1(char *ptr)
7 return ptr == "foo";
10 int test2()
12 return "foo" != (const char*)0;
15 int test3()
17 return "foo" == (const char*)0;
20 int test4()
22 return (const char*)0 != "foo";
25 int test5()
27 return (const char*)0 == "foo";