blob: 553e99881cca4c1e2bc7ce31837e61d14dacced0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
/*
20010106-1.c from the execute part of the gcc torture tests.
*/
#include <testfwk.h>
#ifdef __SDCC
#pragma std_c99
#endif
/* Copyright 2001 Free Software Foundation
Contributed by Alexandre Oliva <aoliva@redhat.com> */
int f(int i) {
switch (i)
{
case -2:
return 33;
case -1:
return 0;
case 0:
return 7;
case 1:
return 4;
case 2:
return 3;
case 3:
return 15;
case 4:
return 9;
default:
ASSERT(0);
}
}
void
testTortureExecute (void) {
if (f(-1))
ASSERT (0);
return;
}
|