OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20000314-2.c] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
typedef unsigned long long uint64;
2
const uint64 bigconst = 1ULL << 34;
3
 
4
int a = 1;
5
 
6
static
7
uint64 getmask(void)
8
{
9
    if (a)
10
      return bigconst;
11
    else
12
      return 0;
13
}
14
 
15
main()
16
{
17
    uint64 f = getmask();
18
    if (sizeof (long long) == 8
19
        && f != bigconst) abort ();
20
    exit (0);
21
}
22
 
23
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.