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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [pr22098-2.c] - Blame information for rev 825

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

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

powered by: WebSVN 2.1.0

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