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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [950426-1.c] - Rev 849

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

 
struct tag {
  int m1;
  char *m2[5];
} s1, *p1;
 
int i;
 
main()
{
  s1.m1 = -1;
  p1 = &s1;
 
  if ( func1( &p1->m1 ) == -1 )
    foo ("ok");
  else
    abort ();
 
  i = 3;
  s1.m2[3]= "123";
 
  if ( strlen( (p1->m2[i])++ ) == 3 )
    foo ("ok");
  else
    abort ();
 
  exit (0);
}
 
func1(int *p) { return(*p); }
 
foo (char *s) {}
 

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

powered by: WebSVN 2.1.0

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