Michael Kuperstein | d7b9392 | 2015-08-06 08:24:38 +0000 | [diff] [blame] | 1 | // 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. |
| 7 | typedef __SIZE_TYPE__ size_t; |
| 8 | #include <Intrin.h> |
| 9 | |
| 10 | void capture_ptr(int* i); |
| 11 | void test_mm_align16(int p) { |
| 12 | _MM_ALIGN16 int i; |
| 13 | capture_ptr(&i); |
| 14 | } |
| 15 | |
| 16 | // CHECK: alloca i32, align 16 |