blob: 0442094b811e879a9503430f93e7c3be89fe9c25 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// Copyright (C) 2000 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 6 Mar 2000 <nathan@codesourcery.com>
// A char const array should never be confused for a string literal.
int main ()
{
static const char ary[] = "wibble";
void const *ptr = 0;
ptr = ary;
if (ptr == "wibble")
return 1;
if (ptr != ary)
return 1;
return 0;
}
|