Home | History | Annotate | Download | only in CodeGen
      1 // RUN: %clang_cc1 -triple i386-pc-win32 -emit-llvm -fms-compatibility -o - < %s | FileCheck %s
      2 
      3 char __declspec(align(8192)) x;
      4 // CHECK-DAG: @x = global i8 0, align 8192
      5 
      6 typedef char __declspec(align(8192)) T;
      7 T y;
      8 // CHECK-DAG: @y = global i8 0, align 8192
      9 
     10 T __declspec(align(8192)) z;
     11 // CHECK-DAG: @z = global i8 0, align 8192
     12 
     13 int __declspec(align(16)) redef;
     14 int __declspec(align(32)) redef = 8;
     15 // CHECK-DAG: @redef = global i32 8, align 32
     16 
     17 struct __declspec(align(64)) S {
     18   char fd;
     19 } s;
     20 // CHECK-DAG: @s = global %struct.S zeroinitializer, align 64
     21 
     22 struct Wrap {
     23   struct S x;
     24 } w;
     25 // CHECK-DAG: @w = global %struct.Wrap zeroinitializer, align 64
     26