Commit d799cfa6 by Geoffrey Keating

* execute/20000402-1.c: New test.

From-SVN: r32889
parent 8fa29a9c
2000-04-03 Geoff Keating <geoffk@cygnus.com>
* execute/20000402-1.c: New test.
Mon Apr 3 14:10:34 2000 Donald Lindsay <dlindsay@cygnus.com>
* execute/va-arg-{15,16,17,18,19}.c: New test.
* execute/va-arg-15.c: New test.
* execute/va-arg-16.c: New test.
* execute/va-arg-17.c: New test.
* execute/va-arg-18.c: New test.
* execute/va-arg-19.c: New test.
2000-03-26 Bernd Schmidt <bernds@cygnus.co.uk>
......
#include <limits.h>
#if ULONG_LONG_MAX != 18446744073709551615ull && ULONG_MAX != 18446744073709551615ull
int main(void) { exit (0); }
#else
#if ULONG_MAX != 18446744073709551615ull
typedef unsigned long long ull;
#else
typedef unsigned long ull;
#endif
#include <stdio.h>
void checkit(int);
main () {
const ull a = 0x1400000000ULL;
const ull b = 0x80000000ULL;
const ull c = a/b;
const ull d = 0x1400000000ULL / 0x80000000ULL;
checkit ((int) c);
checkit ((int) d);
exit(0);
}
void checkit (int a)
{
if (a != 40)
abort();
}
#endif
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