summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/2010-07-14-overconservative-align.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/2010-07-14-overconservative-align.c')
-rw-r--r--clang/test/CodeGen/2010-07-14-overconservative-align.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/clang/test/CodeGen/2010-07-14-overconservative-align.c b/clang/test/CodeGen/2010-07-14-overconservative-align.c
new file mode 100644
index 0000000..5c8c056
--- /dev/null
+++ b/clang/test/CodeGen/2010-07-14-overconservative-align.c
@@ -0,0 +1,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**{{.*}}align 8
+ s->word = 0;
+}