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
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.ext
/
namedret1.C
blob
29955fb525ce6d59f6d53a88d6deb99718388be8
1
// { dg-do assemble }
2
// { dg-options "-Wno-deprecated" }
3
4
int f(int x) return y(x) { } // { dg-error "" }
5
6
extern "C" void abort ();
7
8
int main()
9
{
10
if (f(1) != 1 || f(2) != 2 || f(3) != 3)
11
abort ();
12
return 0;
13
}