* gcc.c-torture/execute/20000412-1.c: New test.

From-SVN: r33093
This commit is contained in:
Richard Henderson 2000-04-12 00:37:30 -07:00 committed by Richard Henderson
parent bcdb110625
commit eb802827f4
2 changed files with 23 additions and 0 deletions

View File

@ -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.

View 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);
}