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
* gcc.target/i386/mpx/hard-reg-1-nov.c (mpx_test): Use "esp"
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
p11144.C
blob
cd1483eba4ca5d201d51e2ce176d3a48c7e00996
1
// { dg-do run }
2
// { dg-options "-O" }
3
// prms-id: 11144
4
5
class Id {
6
public:
7
int d_i;
8
Id(int i) : d_i(i) {}
9
int value() {return d_i;}
10
} ID(1);
11
12
Id foo() { return ID; }
13
14
int main() {
15
const Id &id1 = foo();
16
const Id &id2 = foo();
17
return &id1 == &id2;
18
}