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
Merge reload-branch up to revision 101000
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
string1.C
blob
503533a03be90a75a80e1fe33dab6e38d9fb3690
1
// { dg-do assemble }
2
// Origin: mrs@wrs.com (Mike Stump)
3
4
class Wrapper {
5
public:
6
static const char msgPtr[];
7
static const char *JunkFunc() {
8
return &msgPtr[0];
9
}
10
};
11
12
const char Wrapper::msgPtr[] = "Hello world.";
13
14
int main() {
15
const char *p1 = &Wrapper::msgPtr[0];
16
const char *p2 = Wrapper::JunkFunc();
17
18
if (p1 != p2)
19
return 1;
20
}