Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / pr80020.c
blob4ab1aa8df2f5a8bebf6ac964d4bbdea53de6da94
1 /* PR middle-end/80020 - gcc confused about aligned_alloc argument order
2 { dg-do compile }
3 { dg-options "-O2 -Wall -fdump-tree-optimized" } */
5 void sink (void*);
7 void foo (void)
9 enum {
10 Align = 32,
11 Size = 123
14 void *p = __builtin_aligned_alloc (Align, Size);
15 unsigned n = __builtin_object_size (p, 0);
17 if (n != Size)
18 __builtin_abort ();
20 __builtin___memset_chk (p, 0, Size, n);
22 sink (p);
25 /* { dg-final { scan-tree-dump-not "abort" "optimized" } }
26 { dg-final { scan-tree-dump-not "memset_chk" "optimized" } } */