Commit 82917bf9 by Kazu Hirata Committed by Kazu Hirata

20031003-1.c: Enable only when INT_MAX == 2147483647.

	* gcc.c-torture/execute/20031003-1.c: Enable only when INT_MAX
	== 2147483647.

From-SVN: r72549
parent 5bb650ec
2003-10-16 Kazu Hirata <kazu@cs.umass.edu>
* gcc.c-torture/execute/20031003-1.c: Enable only when INT_MAX
== 2147483647.
2003-10-15 Kazu Hirata <kazu@cs.umass.edu> 2003-10-15 Kazu Hirata <kazu@cs.umass.edu>
* gcc.c-torture/execute/960416-1.x: Remove. * gcc.c-torture/execute/960416-1.x: Remove.
......
/* PR optimization/9325 */ /* PR optimization/9325 */
#include <limits.h>
extern void abort (void); extern void abort (void);
int f1() int f1()
...@@ -14,10 +16,12 @@ int f2() ...@@ -14,10 +16,12 @@ int f2()
int main() int main()
{ {
#if INT_MAX == 2147483647
if (f1() != 2147483647) if (f1() != 2147483647)
abort (); abort ();
if (f2() != 2147483647) if (f2() != 2147483647)
abort (); abort ();
#endif
return 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