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
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.ext
/
namedret3.C
blob
7ea66137276d1d87c930ed9835357227d564b056
1
// Special g++ Options: -Wno-deprecated
2
3
extern "C" void abort();
4
5
int f2(int *x)
6
{
7
*x = 1;
8
return 2;
9
}
10
11
int f1() return x // ERROR -
12
{
13
f2(&x); // ERROR -
14
}
15
16
void g()
17
{
18
int scratch[100];
19
int i;
20
for (i = 0; i < 100; ++i)
21
scratch[i] = 0;
22
}
23
24
int main()
25
{
26
g();
27
if (f1() != 1)
28
abort ();
29
return 0;
30
}