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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [980612-1.c] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
struct fd
2
{
3
        unsigned char a;
4
        unsigned char b;
5
} f = { 5 };
6
 
7
struct fd *g() { return &f; }
8
int h() { return -1; }
9
 
10
int main()
11
{
12
        struct fd *f = g();
13
        f->b = h();
14
        if (((f->a & 0x7f) & ~0x10) <= 2)
15
                abort ();
16
        exit (0);
17
}

powered by: WebSVN 2.1.0

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