blob: 0e1bdc7a57e699d57b30eac849240ae27a8e8c75 (
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
|
/*
20000412-1.c from the execute part of the gcc torture tests.
*/
#include <testfwk.h>
#ifdef __SDCC
#pragma std_c99
#endif
short int i = -1;
const char * const wordlist[207];
const char * const *
foo(void)
{
register const char * const *wordptr = &wordlist[207u + i];
return wordptr;
}
void
testTortureExecute (void)
{
ASSERT (foo() == &wordlist[206]);
#if 0
ASSERT (wordlist[0] == 0);
#endif
return;
}
|