aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/stackalign/pr16660-3.c
blob: dc5abf278c16ff7131432dff30ce03082c685a6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { 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);
  int b[ALIGNMENT/sizeof(int)] __attribute__((aligned(ALIGNMENT)));
  check (&b, ALIGNMENT);
  return 0;
}