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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [binutils-2.20.1/] [ld/] [testsuite/] [ld-elf/] [dl4.c] - Blame information for rev 847

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

Line No. Rev Author Line
1 205 julius
#include <stdio.h>
2
 
3
int foo1;
4
int foo2;
5
 
6
extern void xxx1 (void);
7
extern void xxx2 (void);
8
 
9
void
10
bar (int x)
11
{
12
  if (foo1 == 1)
13
    printf ("bar OK1\n");
14
  else if (foo1 == 0)
15
    printf ("bar OK2\n");
16
  if (foo2 == 1)
17
    printf ("bar OK3\n");
18
  else if (foo2 == 0)
19
    printf ("bar OK4\n");
20
  foo1 = -1;
21
  foo2 = -1;
22
  xxx1 ();
23
  xxx2 ();
24
}

powered by: WebSVN 2.1.0

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