brintos

brintos / llvm-project-archived public Read only

0
0
Text · 827 B · d175cb5 Raw
19 lines · cpp
1// RUN: %clang_cc1 -fms-extensions -emit-llvm -triple x86_64-linux-gnu -o - %s | FileCheck %s --check-prefixes=CHECK2// RUN: %clang_cc1 -fms-extensions -emit-llvm -triple x86_64-windows-msvc -o - %s | FileCheck %s --check-prefixes=WIN3 4// CHECK-LABEL: define {{.*}}void @_Z2f0PU10ptr32_sptri5// WIN-LABEL: define {{.*}}void @"?f0@@YAXPAH@Z"6void f0(int * __ptr32 p) {}7 8// CHECK-LABEL: define {{.*}}ptr addrspace(271) @_Z2f1PU10ptr32_sptri9// WIN-LABEL: define {{.*}}ptr addrspace(271) @"?f1@@YAPAXPAH@Z"10void * __ptr32 __uptr f1(int * __ptr32 p) { return 0; }11 12// CHECK-LABEL: define {{.*}}void @_Z2f2Pi13// WIN-LABEL: define {{.*}}void @"?f2@@YAXPEAH@Z"14void f2(int * __ptr64 p) {}15 16// CHECK-LABEL: define {{.*}}ptr @_Z2f3Pi17// WIN-LABEL: define {{.*}}ptr @"?f3@@YAPEAXPEAH@Z"18void * __ptr64 f3(int * __ptr64 p) { return 0; }19