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
libstdc++: Test 17_intro/names.cc with -D_FORTIFY_SOURCE=2 [PR116210]
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
20011109-1.c
blob
6a35c20a34fb0ab7bb5d486bcc7f40fb699b6b94
1
void
abort
(
void
);
2
void
exit
(
int
);
3
4
void
fail1
(
void
)
5
{
6
abort
();
7
}
8
void
fail2
(
void
)
9
{
10
abort
();
11
}
12
void
fail3
(
void
)
13
{
14
abort
();
15
}
16
void
fail4
(
void
)
17
{
18
abort
();
19
}
20
21
22
void
foo
(
long
x
)
23
{
24
switch
(
x
)
25
{
26
case
-
6
:
27
fail1
();
break
;
28
case
0
:
29
fail2
();
break
;
30
case
1
:
case
2
:
31
break
;
32
case
3
:
case
4
:
case
5
:
33
fail3
();
34
break
;
35
default
:
36
fail4
();
37
break
;
38
}
39
switch
(
x
)
40
{
41
42
case
-
3
:
43
fail1
();
break
;
44
case
0
:
case
4
:
45
fail2
();
break
;
46
case
1
:
case
3
:
47
break
;
48
case
2
:
case
8
:
49
abort
();
50
break
;
51
default
:
52
fail4
();
53
break
;
54
}
55
}
56
57
int
main
(
void
)
58
{
59
foo
(
1
);
60
exit
(
0
);
61
}