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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [pr22098-3.c] - Blame information for rev 308

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

Line No. Rev Author Line
1 297 jeremybenn
extern void abort (void);
2
extern void exit (int);
3
typedef __SIZE_TYPE__ size_t;
4
int n = 0;
5
int f (void) { return ++n; }
6
int
7
main (void)
8
{
9
  int a = 0;
10
  int *p;
11
  size_t b;
12
  b = (size_t)(p = &(int []){0, f(), 2}[1]);
13
  if (*p != 1 || *(int *)b != 1 || n != 1)
14
    abort ();
15
  exit (0);
16
}

powered by: WebSVN 2.1.0

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