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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20050203-1.c] - Blame information for rev 825

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

Line No. Rev Author Line
1 149 jeremybenn
/* Reduced testcase extracted from Samba source code.  */
2
 
3
#include <stdlib.h>
4
 
5
static void __attribute__((__noinline__))
6
     foo (unsigned char *p) {
7
  *p = 0x81;
8
}
9
 
10
static void __attribute__((__noinline__))
11
     bar (int x) {
12
  asm ("");
13
}
14
 
15
int main() {
16
  unsigned char b;
17
 
18
  foo(&b);
19
  if (b & 0x80)
20
    {
21
      bar (b & 0x7f);
22
      exit (0);
23
    }
24
  else
25
    {
26
      bar (b & 1);
27
      abort ();
28
    }
29
}

powered by: WebSVN 2.1.0

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