]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/Wstring-literal-comparison-4.c
replace ISL with isl
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / Wstring-literal-comparison-4.c
CommitLineData
e994a705
RS
1/* PR c/7776 */
2/* { dg-do compile } */
c116cd05 3/* { dg-options "-Wall -Wno-address" } */
e994a705
RS
4
5int test1(char *ptr)
6{
7 return ptr == "foo";
8}
9
10int test2()
11{
12 return "foo" != (const char*)0;
13}
14
15int test3()
16{
17 return "foo" == (const char*)0;
18}
19
20int test4()
21{
22 return (const char*)0 != "foo";
23}
24
25int test5()
26{
27 return (const char*)0 == "foo";
28}
29