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/] [vrp-2.c] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
extern void abort ();
2
extern void exit (int);
3
 
4
int f (int a) {
5
        if (a != 2) {
6
                a = a > 0 ? a : -a;
7
                if (a == 2)
8
                  return 0;
9
                return 1;
10
        }
11
        return 1;
12
}
13
 
14
int main (int argc, char *argv[]) {
15
        if (f (-2))
16
                abort ();
17
        exit (0);
18
}
19
 

powered by: WebSVN 2.1.0

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