repo.or.cz
/
llvm
/
avr.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix PR4948 (and a leak): by not destroying the DwarfException
[llvm/avr.git]
/
test
/
FrontendC
/
2004-03-15-SimpleIndirectGoto.c
blob
a3f27b2a330148273c20f31c4c011103d4cdf555
1
// RUN: %llvmgcc -S %s -o - | llvm-as -o /dev/null
2
3
int
code
[]={
0
,
0
,
0
,
0
,
1
};
4
void
foo
(
int
x
) {
5
volatile
int
b
;
6
b
=
0xffffffff
;
7
}
8
void
bar
(
int
*
pc
) {
9
static const void
*
l
[] = {&&
lab0
, &&
end
};
10
11
foo
(
0
);
12
goto
*
l
[*
pc
];
13
lab0
:
14
foo
(
0
);
15
pc
++;
16
goto
*
l
[*
pc
];
17
end
:
18
return
;
19
}
20
int
main
() {
21
bar
(
code
);
22
return
0
;
23
}