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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [nested-1.c] - Blame information for rev 774

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

Line No. Rev Author Line
1 688 jeremybenn
/* { dg-require-effective-target trampolines } */
2
 
3
typedef __SIZE_TYPE__ size_t;
4
extern int printf (const char *, ...);
5
extern void *memset (void *, int, size_t);
6
 
7
int bar (int (*)(), int, void *);
8
 
9
int
10
main(int argc, char **argv)
11
{
12
  struct s { int a; char b[argc]; };
13
  int nested (struct s x) { return x.a + sizeof(x); }
14
  struct s t;
15
  memset (&t, 0, sizeof(t));
16
  t.a = 123;
17
  printf("%d\n", bar (nested, argc, &t));
18
  return 0;
19
}
20
 
21
 

powered by: WebSVN 2.1.0

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