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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [950628-1.c] - Blame information for rev 711

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

Line No. Rev Author Line
1 688 jeremybenn
typedef struct
2
{
3
  char hours, day, month;
4
  short year;
5
} T;
6
 
7
T g (void)
8
{
9
  T now;
10
 
11
  now.hours = 1;
12
  now.day = 2;
13
  now.month = 3;
14
  now.year = 4;
15
  return now;
16
}
17
 
18
T f (void)
19
{
20
  T virk;
21
 
22
  virk = g ();
23
  return virk;
24
}
25
 
26
main ()
27
{
28
  if (f ().hours != 1 || f ().day != 2 || f ().month != 3 || f ().year != 4)
29
    abort ();
30
  exit (0);
31
}

powered by: WebSVN 2.1.0

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