blob: ae8e98086a7699c4cd6d341faa8e93bb7b722b3a [file] [log] [blame]
Michael Kupersteind7b93922015-08-06 08:24:38 +00001// RUN: %clang_cc1 -ffreestanding -fms-extensions -fms-compatibility -fms-compatibility-version=17.00 \
2// RUN: -triple i686--windows -emit-llvm %s -o - \
3// RUN: | FileCheck %s -check-prefix CHECK
4
5// Intrin.h needs size_t, but -ffreestanding prevents us from getting it from
6// stddef.h. Work around it with this typedef.
7typedef __SIZE_TYPE__ size_t;
8#include <Intrin.h>
9
10void capture_ptr(int* i);
11void test_mm_align16(int p) {
12 _MM_ALIGN16 int i;
13 capture_ptr(&i);
14}
15
16// CHECK: alloca i32, align 16