mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-14 08:10:27 +08:00
* gcc.c-torture/execute/20000314-2.c: New test.
From-SVN: r32532
This commit is contained in:
parent
263ac0d832
commit
07fd50eab4
@ -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.
|
||||
|
23
gcc/testsuite/gcc.c-torture/execute/20000314-2.c
Normal file
23
gcc/testsuite/gcc.c-torture/execute/20000314-2.c
Normal 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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user