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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [20030612-1.c] - Blame information for rev 149

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

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do run } */
2
/* { dg-options "-O2" } */
3
 
4
extern void abort (void);
5
 
6
int A, B;
7
 
8
void foo()
9
{
10
  long x = 3;
11
  (void)({
12
    A = B + x + ((1) - 1);
13
    return;     /* { dg-warning "statement-expressions should end with a non-void expression" "" { xfail *-*-* } } */
14
  });
15
}
16
 
17
main()
18
{
19
  B = 5;
20
  foo();
21
  if (A != 8)
22
    abort ();
23
  return 0;
24
}

powered by: WebSVN 2.1.0

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