view gcc/testsuite/c-c++-common/pr50459.c @ 19:2b5abeee2509 default tip

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* PR c/50459 */
/* { dg-do compile } */
/* { dg-options "-Wall -Wextra" } */
/* { dg-additional-options "-fno-common" { target hppa*-*-hpux* } } */

enum { A = 128, B = 1 };
void *fn1 (void) __attribute__((assume_aligned (A)));
void *fn2 (void) __attribute__((assume_aligned (A, 4)));
void *fn5 (int) __attribute__((alloc_size (B)));
void *fn6 (int) __attribute__((alloc_align (B)));
void fn7 (const char *, ...) __attribute__ ((sentinel (B)));
int __attribute__((vector_size (A))) a;
int __attribute__((aligned (A))) foo;