* gcc.c-torture/execute/20000412-1.c: New test.
From-SVN: r33093
This commit is contained in:
parent
bcdb110625
commit
eb802827f4
@ -1,3 +1,7 @@
|
||||
2000-04-10 Richard Henderson <rth@cygnus.com>
|
||||
|
||||
* gcc.c-torture/execute/20000412-1.c: New test.
|
||||
|
||||
2000-04-10 Nathan Sidwell <nathan@codesourcery.com>
|
||||
|
||||
* g++.old-deja/g++.eh/catchptr1.C: New test.
|
||||
|
19
gcc/testsuite/gcc.c-torture/execute/20000412-1.c
Normal file
19
gcc/testsuite/gcc.c-torture/execute/20000412-1.c
Normal file
@ -0,0 +1,19 @@
|
||||
enum { TOTAL_KEYWORDS = 207 };
|
||||
|
||||
short int i = -1;
|
||||
const char * const wordlist[TOTAL_KEYWORDS];
|
||||
|
||||
const char * const *
|
||||
foo(void)
|
||||
{
|
||||
register const char * const *wordptr = &wordlist[TOTAL_KEYWORDS + i];
|
||||
return wordptr;
|
||||
}
|
||||
|
||||
int
|
||||
main()
|
||||
{
|
||||
if (foo() != &wordlist[206])
|
||||
abort ();
|
||||
exit(0);
|
||||
}
|
Loading…
Reference in New Issue
Block a user