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
Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git]
/
old-autovect-branch
/
gcc
/
testsuite
/
g++.dg
/
warn
/
return-reference.C
blob
83021900dbd7696d6b6737cae14979cb84791b83
1
// { dg-do compile }
2
3
const int* bar();
4
5
const int&
6
foo1()
7
{
8
static int empty;
9
const int* x = bar();
10
return (x ? *x : empty); // { dg-bogus ".*" "" { xfail *-*-* } }
11
}
12
13
const int&
14
foo2()
15
{
16
static int empty;
17
const int* x = bar();
18
const int& r = (x ? *x : empty);
19
return (r);
20
}
21