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.dg/] [struct-ret-libc.c] - Blame information for rev 316

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

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