diff options
| author | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-08-09 05:21:17 +0000 |
|---|---|---|
| committer | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-08-09 05:21:17 +0000 |
| commit | e8b3ae7c8338ca58bb9166eb433500c71c45c64f (patch) | |
| tree | 1429e1232ea655b0c6b6a50433bd9624307c04b5 | |
| parent | 9d19a10dc6993069e41fa3facdd68b914c30f6f7 (diff) | |
| download | ppe42-gcc-e8b3ae7c8338ca58bb9166eb433500c71c45c64f.tar.gz ppe42-gcc-e8b3ae7c8338ca58bb9166eb433500c71c45c64f.zip | |
* gcc.c-torture/execute/20000808-1.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35580 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
| -rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/20000808-1.c | 56 |
2 files changed, 60 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 6fed580e976..be6ce31bcfb 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2000-08-09 Alexandre Oliva <aoliva@redhat.com> + + * gcc.c-torture/execute/20000808-1.c: New test. + 2000-08-09 Joseph S. Myers <jsm28@cam.ac.uk> * gcc.dg/c90-const-expr-1.c: New test. diff --git a/gcc/testsuite/gcc.c-torture/execute/20000808-1.c b/gcc/testsuite/gcc.c-torture/execute/20000808-1.c new file mode 100644 index 00000000000..5c66fb9452d --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/20000808-1.c @@ -0,0 +1,56 @@ +typedef struct { + long int p_x, p_y; +} Point; + +void +bar () +{ +} + +void +f (p0, p1, p2, p3, p4, p5) + Point p0, p1, p2, p3, p4, p5; +{ + if (p0.p_x != 0 || p0.p_y != 1 + || p1.p_x != -1 || p1.p_y != 0 + || p2.p_x != 1 || p2.p_y != -1 + || p3.p_x != -1 || p3.p_y != 1 + || p4.p_x != 0 || p4.p_y != -1 + || p5.p_x != 1 || p5.p_y != 0) + abort (); +} + +void +foo () +{ + Point p0, p1, p2, p3, p4, p5; + + bar(); + + p0.p_x = 0; + p0.p_y = 1; + + p1.p_x = -1; + p1.p_y = 0; + + p2.p_x = 1; + p2.p_y = -1; + + p3.p_x = -1; + p3.p_y = 1; + + p4.p_x = 0; + p4.p_y = -1; + + p5.p_x = 1; + p5.p_y = 0; + + f (p0, p1, p2, p3, p4, p5); +} + +int +main() +{ + foo(); + exit(); +} |

