OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [mallign.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* Check that malloc's alignment honors what we trust it
2
   minimally should.  */
3
 
4
/* { dg-do run } */
5
/* { dg-options "-fno-builtin-malloc" } */
6
 
7
#include <stdlib.h>                                                            
8
typedef int word __attribute__((mode(word)));
9
 
10
int main()
11
{
12
    if ((size_t)malloc (1) & (sizeof(word)-1))
13
        abort ();
14
    return 0;
15
}

powered by: WebSVN 2.1.0

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