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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.dg/] [20030612-1.c] - Rev 12

Compare with Previous | Blame | View Log

/* { dg-do run } */
/* { dg-options "-O2" } */
 
extern void abort (void);
 
int A, B;
 
void foo()
{
  long x = 3;
  (void)({
    A = B + x + ((1) - 1);
    return;	/* { dg-warning "statement-expressions should end with a non-void expression" "" { xfail *-*-* } } */
  });
}
 
main()
{
  B = 5;
  foo();
  if (A != 8)
    abort ();
  return 0;
}
 

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.