Commit d27442c9 by John David Anglin Committed by John David Anglin

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
parent c6b5df53
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>
* gcc.c-torture/compile/20020910-1.c: New test.
......
/* { dg-do run { target hppa*-*-* } } */
/* { dg-options { -O2 } { target hppa*-*-* } } */
extern void exit (int);
typedef struct {
int x;
int y;
......@@ -16,7 +17,7 @@ main(int argc, char *argv[])
if (printPoints(toPoint(0, 0), toPoint(1000, 1000)) != 1)
abort();
else
exit();
exit(0);
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment