15 lines · c
1// RUN: %clang_cc1 %s -std=c89 -triple i386-apple-darwin -emit-llvm -o - | FileCheck %s2// Misaligned parameter must be memcpy'd to correctly aligned temporary.3 4struct s { int x; long double y; };5int bar(struct s *, struct s *);6long double foo(struct s x, int i, struct s y) {7// CHECK: foo8// CHECK: %x = alloca %struct.s, align 169// CHECK: %y = alloca %struct.s, align 1610// CHECK: memcpy11// CHECK: memcpy12// CHECK: bar13 return bar(&x, &y);14}15