summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/alloca-align.cpp
blob: de6b34d060723832b5f9bd6d079f5f9f530f1c1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -o - %s | FileCheck %s
//
// CHECK: alloca %struct.MemsetRange, align 16

struct MemsetRange {
  int Start, End;
  unsigned Alignment;
  int TheStores __attribute__((aligned(16)));
};
void foobar() {
  (void) MemsetRange();
}
OpenPOWER on IntegriCloud