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/] [compile/] [nested-1.c] - Blame information for rev 297

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 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.