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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [guality/] [pr36977.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 689 jeremybenn
/* PR debug/36977 */
2
/* { dg-do run } */
3
/* { dg-options "-g" } */
4
/* { dg-skip-if "" { *-*-* }  { "*" } { "-O0" } } */
5
 
6
void
7
foo ()
8
{
9
}
10
 
11
int
12
main ()
13
{
14
  struct { char c[100]; } cbig;
15
  struct { int i[800]; } ibig;
16
  struct { long l[900]; } lbig;
17
  struct { float f[200]; } fbig;
18
  struct { double d[300]; } dbig;
19
  struct { short s[400]; } sbig;
20
 
21
  ibig.i[0] = 55;                /* { dg-final { gdb-test 30 "ibig.i\[0\]" "55" } } */
22
  ibig.i[100] = 5;              /* { dg-final { gdb-test 30 "ibig.i\[100\]" "5" } } */
23
  cbig.c[0] = '\0';              /* { dg-final { gdb-test 30 "cbig.c\[0\]" "'\\0'" } } */
24
  cbig.c[99] = 'A';             /* { dg-final { gdb-test 30 "cbig.c\[99\]" "'A'" } } */
25
  fbig.f[100] = 11.0;           /* { dg-final { gdb-test 30 "fbig.f\[100\]" "11" } } */
26
  dbig.d[202] = 9.0;            /* { dg-final { gdb-test 30 "dbig.d\[202\]" "9" } } */
27
  sbig.s[90] = 255;             /* { dg-final { gdb-test 30 "sbig.s\[90\]" "255" } } */
28
  lbig.l[333] = 999;            /* { dg-final { gdb-test 30 "lbig.l\[333\]" "999" } } */
29
 
30
  foo ();
31
  return 0;
32
}

powered by: WebSVN 2.1.0

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