OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [pr35264.c] - Blame information for rev 315

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

Line No. Rev Author Line
1 298 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.