Last change
on this file since 2 was 2, checked in by bird, 22 years ago |
Initial revision
|
-
Property cvs2svn:cvs-rev
set to
1.1
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
File size:
528 bytes
|
Line | |
---|
1 | /* PR c/4389
|
---|
2 | This testcase failed because host_integerp (x, 0) was returning
|
---|
3 | 1 even for constants bigger than 2^31. */
|
---|
4 | /* { dg-do run } */
|
---|
5 | /* { dg-options "-O2" } */
|
---|
6 |
|
---|
7 | extern void abort (void);
|
---|
8 | extern void exit (int);
|
---|
9 | struct A {
|
---|
10 | int a[10000][10000];
|
---|
11 | };
|
---|
12 | int b[2] = { 213151, 0 };
|
---|
13 |
|
---|
14 | void foo (struct A *x, int y)
|
---|
15 | {
|
---|
16 | if (x->a[9999][9999] != x->a[y][y])
|
---|
17 | abort ();
|
---|
18 | if (x->a[9999][9999] != 213151)
|
---|
19 | abort ();
|
---|
20 | }
|
---|
21 |
|
---|
22 | int main (void)
|
---|
23 | {
|
---|
24 | struct A *x;
|
---|
25 | asm ("" : "=r" (x) : "0" (&b[1]));
|
---|
26 | foo (x - 1, 9999);
|
---|
27 | exit (0);
|
---|
28 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.