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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr35264.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do run } */
2
/* { dg-options "-O1" } */
3
extern void abort(void);
4
long long __attribute__((noinline)) get(void)
5
{
6
  return -2;
7
}
8
long long __attribute__((noinline)) get(void);
9
int __attribute__((noinline)) check(void)
10
{
11
 long long lcn;
12
 
13
 lcn = get();
14
 if (lcn >= 0 || lcn == -1)
15
  return 0;
16
 
17
 return -1;
18
}
19
int main()
20
{
21
  if (check() == 0)
22
    abort();
23
  return 0;
24
}

powered by: WebSVN 2.1.0

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