struct-ret-1.c: Add prototype for exit function and correct usage.
* gcc.dg/struct-ret-1.c: Add prototype for exit function and correct usage. From-SVN: r57012
This commit is contained in:
parent
c6b5df5351
commit
d27442c936
@ -1,3 +1,8 @@
|
|||||||
|
2002-09-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
|
||||||
|
|
||||||
|
* gcc.dg/struct-ret-1.c: Add prototype for exit function and correct
|
||||||
|
usage.
|
||||||
|
|
||||||
2002-09-10 Richard Earnshaw <rearnsha@arm.com>
|
2002-09-10 Richard Earnshaw <rearnsha@arm.com>
|
||||||
|
|
||||||
* gcc.c-torture/compile/20020910-1.c: New test.
|
* gcc.c-torture/compile/20020910-1.c: New test.
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/* { dg-do run { target hppa*-*-* } } */
|
/* { dg-do run { target hppa*-*-* } } */
|
||||||
/* { dg-options { -O2 } { target hppa*-*-* } } */
|
/* { dg-options { -O2 } { target hppa*-*-* } } */
|
||||||
|
extern void exit (int);
|
||||||
typedef struct {
|
typedef struct {
|
||||||
int x;
|
int x;
|
||||||
int y;
|
int y;
|
||||||
@ -16,7 +17,7 @@ main(int argc, char *argv[])
|
|||||||
if (printPoints(toPoint(0, 0), toPoint(1000, 1000)) != 1)
|
if (printPoints(toPoint(0, 0), toPoint(1000, 1000)) != 1)
|
||||||
abort();
|
abort();
|
||||||
else
|
else
|
||||||
exit();
|
exit(0);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user