Clang Project

clang_source_code/test/CodeGen/microsoft-no-common-align.c
1// RUN: %clang_cc1 -triple x86_64-windows-msvc -emit-llvm -o - %s | FileCheck %s
2typedef float TooLargeAlignment __attribute__((__vector_size__(64)));
3typedef float NormalAlignment __attribute__((__vector_size__(4)));
4
5TooLargeAlignment TooBig;
6// CHECK: @TooBig = dso_local global <16 x float>  zeroinitializer, align 64
7NormalAlignment JustRight;
8// CHECK: @JustRight = common dso_local global <1 x float>  zeroinitializer, align 4
9
10TooLargeAlignment *IsAPointer;
11// CHECK: @IsAPointer = common dso_local global <16 x float>* null, align 8
12