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++.mike
/
net42.C
blob
1205812c9bb52b6fa139db044d9a1b35ec4a325d
1
// { dg-do assemble }
2
3
typedef void (*__sighandler_t)(int);
4
5
struct sigaction {
6
__sighandler_t sa_handler;
7
};
8
9
struct task_struct {
10
struct sigaction sigaction[32];
11
};
12
13
void
14
get_stat() {
15
struct task_struct ** p = 0;
16
unsigned long bit = 1;
17
unsigned long sigignore = 0;
18
int i = 0;
19
switch((__SIZE_TYPE__) (*p)->sigaction[i].sa_handler)
20
{
21
case 1:
22
sigignore |= bit;
23
break;
24
}
25
}