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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [struct-ret-libc.c] - Blame information for rev 774

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

Line No. Rev Author Line
1 689 jeremybenn
/* Test evolved from source from Simona Perri <perri@mat.unical.it>
2
   and Gerald Pfeifer<pfeifer@dbai.tuwien.ac.at>.
3
 
4
   Copyright (C) 2003 Free Software Foundation  */
5
 
6
/* { dg-do run } */
7
 
8
#include <stdlib.h>
9
 
10
int main ()
11
{
12
  div_t d = div (20, 5);
13
  if ((d.quot != 4) || (d.rem))
14
    abort ();
15
  exit (0);
16
}

powered by: WebSVN 2.1.0

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