OSDN Git Service

* gcc.c-torture/execute/20000412-1.c: New test.
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 12 Apr 2000 07:37:30 +0000 (07:37 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 12 Apr 2000 07:37:30 +0000 (07:37 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33093 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/20000412-1.c [new file with mode: 0644]

index 48a4fdb..2099945 100644 (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.
diff --git a/gcc/testsuite/gcc.c-torture/execute/20000412-1.c b/gcc/testsuite/gcc.c-torture/execute/20000412-1.c
new file mode 100644 (file)
index 0000000..a5652df
--- /dev/null
@@ -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);
+}