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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* PR middle-end/46499 */
2
/* { dg-do run } */
3
/* { dg-options "-O -fno-omit-frame-pointer -fno-tree-ccp -fno-tree-dominator-opts -finline-small-functions" } */
4
 
5
extern void abort (void);
6
 
7
int count = 0;
8
 
9
int
10
foo (void)
11
{
12
  count++;
13
  return 0;
14
}
15
 
16
int
17
bar (void)
18
{
19
  count++;
20
  return 0;
21
}
22
 
23
int
24
main ()
25
{
26
  if ((foo () == 1) & (bar () == 1))
27
    abort ();
28
  if (count != 2)
29
    abort ();
30
  return 0;
31
}

powered by: WebSVN 2.1.0

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