summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/align-local.c
blob: c8b27a83c3ff76a4d48bdabed208ca0e4592bc77 (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: %clang_cc1 -emit-llvm < %s | FileCheck %s

typedef struct __attribute((aligned(16))) {int x[4];} ff;

// CHECK: alloca %struct.ff, align 16
// CHECK: alloca %struct.anon, align 16
int a() {
  ff a;
  struct {int x[4];} b __attribute((aligned(16)));
}