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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [pr35231.c] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 688 jeremybenn
extern void abort(void);
2
 
3
int __attribute__((noinline))
4
foo(int bits_per_pixel, int depth)
5
{
6
  if ((bits_per_pixel | depth) == 1)
7
    abort ();
8
  return bits_per_pixel;
9
}
10
 
11
int main()
12
{
13
  if (foo(2, 0) != 2)
14
    abort ();
15
  return 0;
16
}

powered by: WebSVN 2.1.0

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