summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/arm-byval-align.c
blob: aa22503fe4bbab18bf4e44d364552449ec6370ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// RUN: %clang_cc1 -triple=armv7-none-eabi < %s -S -emit-llvm | FileCheck %s

struct foo {
  long long a;
  char b;
  int c:16;
  int d[16];
};

// CHECK: %struct.foo* byval align 8 %z
long long bar(int a, int b, int c, int d, int e,
              struct foo z) {
  return z.a;
}