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/] [execute/] [pr30185.c] - Blame information for rev 297

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
/* PR target/30185 */
2
 
3
extern void abort (void);
4
 
5
typedef struct S { char a; long long b; } S;
6
 
7
S
8
foo (S x, S y)
9
{
10
  S z;
11
  z.b = x.b / y.b;
12
  return z;
13
}
14
 
15
int
16
main (void)
17
{
18
  S a, b;
19
  a.b = 32LL;
20
  b.b = 4LL;
21
  if (foo (a, b).b != 8LL)
22
    abort ();
23
  a.b = -8LL;
24
  b.b = -2LL;
25
  if (foo (a, b).b != 4LL)
26
    abort ();
27
  return 0;
28
}

powered by: WebSVN 2.1.0

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