aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/stackalign/pr16660-2.c
blob: ee3dd74dc60254f81a0eb3e83b92b99f55c44e3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do run } */
/* { dg-skip-if "Stack alignment causes use of alloca" { nvptx-*-* } "*" "" } */

#include "check.h"

typedef __SIZE_TYPE__ size_t;
#define ALIGNMENT 256
int main(void)
{
  int a[ALIGNMENT/sizeof(int)] __attribute__((aligned(ALIGNMENT)));
  check (&a, ALIGNMENT);
  return 0;
}