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/] [950929-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
int f (char *p) { }
2
 
3
main ()
4
{
5
  char c;
6
  char c2;
7
  int i = 0;
8
  char *pc = &c;
9
  char *pc2 = &c2;
10
  int *pi = &i;
11
 
12
  *pc2 = 1;
13
  *pi = 1;
14
  *pc2 &= *pi;
15
  f (pc2);
16
  *pc2 = 1;
17
  *pc2 &= *pi;
18
  if (*pc2 != 1)
19
    abort ();
20
  exit (0);
21
}

powered by: WebSVN 2.1.0

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