* gcc.c-torture/execute/20000314-2.c: New test.

From-SVN: r32532
This commit is contained in:
Jeffrey A Law 2000-03-14 16:49:03 +00:00 committed by Jeff Law
parent 263ac0d832
commit 07fd50eab4
2 changed files with 24 additions and 0 deletions

View File

@ -1,5 +1,6 @@
Tue Mar 14 08:58:37 2000 Jeffrey A Law (law@cygnus.com)
* gcc.c-torture/execute/20000314-2.c: New test.
* gcc.c-torture/execute/20000314-1.c: New test.
* gcc.c-torture/compile/20000314-2.c: New test.
* gcc.c-torture/compile/20000314-1.c: New test.

View File

@ -0,0 +1,23 @@
typedef unsigned long long uint64;
const uint64 bigconst = 1ULL << 34;
int a = 1;
static
uint64 getmask(void)
{
if (a)
return bigconst;
else
return 0;
}
main()
{
uint64 f = getmask();
if (sizeof (long long) == 8
&& f != bigconst) abort ();
exit (0);
}