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++.pt
/
t42.C
blob
ca76d521855787685b0cf758d5abd19d83b8e2fb
1
// { dg-do run }
2
extern "C" void abort ();
3
4
struct A {
5
struct stat {
6
int x;
7
stat (int j) { abort (); }
8
};
9
static int stat (double d) { return 0; } // { dg-bogus "" } cfront takes it
10
static int zap () {
11
stat (0);
12
return stat (1); // { dg-bogus "" } this should work
13
}
14
};
15
16
int main () {
17
return A::zap ();
18
}