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