OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fix
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
string2.C
1
// Copyright (C) 2000 Free Software Foundation, Inc.
2
// Contributed by Nathan Sidwell 6 Mar 2000 <nathan@codesourcery.com>
3
4
// A char const array should never be confused for a string literal.
5
6
int main ()
7
{
8
static const char ary[] = "wibble";
9
void const *ptr = 0;
10
11
ptr = ary;
12
if (ptr == "wibble")
13
return 1;
14
if (ptr != ary)
15
return 1;
16
return 0;
17
}