Ulrich Weigand | b63f779 | 2015-04-21 17:26:18 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -triple s390x-linux-gnu -emit-llvm %s -o - | FileCheck %s |
2 | |||||
3 | // SystemZ prefers to align all global variables to two bytes. | ||||
4 | |||||
5 | struct test { | ||||
6 | signed char a; | ||||
7 | }; | ||||
8 | |||||
9 | char c; | ||||
10 | // CHECK-DAG: @c = common global i8 0, align 2 | ||||
11 | |||||
12 | struct test s; | ||||
13 | // CHECK-DAG: @s = common global %struct.test zeroinitializer, align 2 | ||||
14 |