repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
mallign.c
blob
9a18a00c3b08c03838fc2c21d86d692250a364e5
1
/* 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
((
sizeof
(
word
)>
1
) && ((
__UINTPTR_TYPE__
)
malloc
(
1
) & (
sizeof
(
word
)-
1
)))
13
abort
();
14
return
0
;
15
}