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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [pr28778.c] - Diff between revs 149 and 154

Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
extern void abort(void);
extern void abort(void);
typedef long GLint;
typedef long GLint;
void aglChoosePixelFormat (const GLint *);
void aglChoosePixelFormat (const GLint *);
 
 
void
void
find (const int *alistp)
find (const int *alistp)
{
{
  const int *blist;
  const int *blist;
  int list[32];
  int list[32];
  if (alistp)
  if (alistp)
    blist = alistp;
    blist = alistp;
  else
  else
    {
    {
      list[3] = 42;
      list[3] = 42;
      blist = list;
      blist = list;
    }
    }
  aglChoosePixelFormat ((GLint *) blist);
  aglChoosePixelFormat ((GLint *) blist);
}
}
 
 
void
void
aglChoosePixelFormat (const GLint * a)
aglChoosePixelFormat (const GLint * a)
{
{
  int *b = (int *) a;
  int *b = (int *) a;
  if (b[3] != 42)
  if (b[3] != 42)
    abort ();
    abort ();
}
}
 
 
int
int
main (void)
main (void)
{
{
  find (0);
  find (0);
  return 0;
  return 0;
}
}
 
 

powered by: WebSVN 2.1.0

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