summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/stackalign/pr16660-3.c
blob: 1c1ddd1dd74c48e0ba84baf2a4bf0fddc1bc245c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do run } */

#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;
}