summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/2010-07-14-overconservative-align.c
blob: a98a90569422a6a1e64426cbf7eb2965fa1c413d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// RUN: %clang_cc1 %s -triple x86_64-apple-darwin -emit-llvm -o - | FileCheck %s
// PR 5995
struct s {
  int word;
  struct {
    int filler __attribute__ ((aligned (8)));
  };
};

void func (struct s *s)
{
  // CHECK: load %struct.s** %s.addr, align 8
  s->word = 0;
}
OpenPOWER on IntegriCloud