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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [pr30375.c] - Diff between revs 816 and 826

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

Rev 816 Rev 826
/* { dg-do run } */
/* { dg-do run } */
 
 
typedef struct _s {
typedef struct _s {
    int a;
    int a;
    int b;
    int b;
    int c;
    int c;
    int d;
    int d;
} s;
} s;
 
 
extern void abort(void);
extern void abort(void);
 
 
void __attribute__((noinline)) g(s *p)
void __attribute__((noinline)) g(s *p)
{
{
  if (p->d != 0)
  if (p->d != 0)
    abort ();
    abort ();
}
}
 
 
char *c = (void*)0;
char *c = (void*)0;
void __attribute__((noinline)) f(void) { if (c) *c = 1; }
void __attribute__((noinline)) f(void) { if (c) *c = 1; }
 
 
void test_signed_msg_encoding(void)
void test_signed_msg_encoding(void)
{
{
    s signInfo = { sizeof(signInfo), 0 };
    s signInfo = { sizeof(signInfo), 0 };
 
 
    signInfo.b = 1;
    signInfo.b = 1;
    signInfo.c = 0;
    signInfo.c = 0;
    g(&signInfo);
    g(&signInfo);
    signInfo.d = 1;
    signInfo.d = 1;
    f();
    f();
}
}
 
 
int main()
int main()
{
{
  test_signed_msg_encoding ();
  test_signed_msg_encoding ();
  test_signed_msg_encoding ();
  test_signed_msg_encoding ();
  return 0;
  return 0;
}
}
 
 

powered by: WebSVN 2.1.0

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