Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / ms-align-tentative.c
blobae9b4b10241c50a0c50172df251f4096d6bd7386
1 // RUN: %clang_cc1 -triple i386-pc-win32 -emit-llvm -fms-compatibility -o - < %s | FileCheck %s
3 char __declspec(align(8192)) x;
4 // CHECK-DAG: @x = dso_local global i8 0, align 8192
6 typedef char __declspec(align(8192)) T;
7 T y;
8 // CHECK-DAG: @y = dso_local global i8 0, align 8192
10 T __declspec(align(8192)) z;
11 // CHECK-DAG: @z = dso_local global i8 0, align 8192
13 int __declspec(align(16)) redef;
14 int __declspec(align(32)) redef = 8;
15 // CHECK-DAG: @redef = dso_local global i32 8, align 32
17 struct __declspec(align(64)) S {
18 char fd;
19 } s;
20 // CHECK-DAG: @s = dso_local global %struct.S zeroinitializer, align 64
22 struct Wrap {
23 struct S x;
24 } w;
25 // CHECK-DAG: @w = dso_local global %struct.Wrap zeroinitializer, align 64