summaryrefslogtreecommitdiff
path: root/test/CodeGen/arm-byval-align.c
blob: c3e887773fb04f3a73451678b0518e13a5cbf907 (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(%struct.foo) align 8 %z
long long bar(int a, int b, int c, int d, int e,
              struct foo z) {
  return z.a;
}