Merge from trunk @ 138209
[official-gcc.git] / gcc / testsuite / gcc.dg / mallign.c
blob4a64dbbcc3b3e35c75ed56c9f9df947ca77b64df
1 /* Check that malloc's alignment honors what we trust it
2 minimally should. */
4 /* { dg-do run } */
5 /* { dg-options "-fno-builtin-malloc" } */
7 #include <stdlib.h>
8 typedef int word __attribute__((mode(word)));
10 int main()
12 if ((long)malloc (1) & (sizeof(word)-1))
13 abort ();
14 return 0;