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
Dead
[official-gcc.git]
/
gomp-20050608-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
ctor1.C
blob
73907195782df8f59ea4b26d2ea576493d34e3aa
1
// { dg-do run }
2
// PRMS Id: 5584
3
4
extern "C"
5
{
6
struct xx {
7
void (*xx)(void);
8
int x,y;
9
};
10
}
11
12
int r = 1;
13
14
void f(void)
15
{
16
r = 0;
17
}
18
19
int main()
20
{
21
struct xx p;
22
23
p.xx = f;
24
p.xx();
25
26
return r;
27
}