• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: %clang_cc1 -fms-extensions -emit-llvm -triple x86_64-linux-gnu -o - %s | FileCheck %s --check-prefixes=CHECK
2 // RUN: %clang_cc1 -fms-extensions -emit-llvm -triple x86_64-windows-msvc -o - %s | FileCheck %s --check-prefixes=WIN
3 
4 // CHECK-LABEL: define {{.*}}void @_Z2f0PU10ptr32_sptri
5 // WIN-LABEL: define {{.*}}void @"?f0@@YAXPAH@Z"
f0(int * __ptr32 p)6 void f0(int * __ptr32 p) {}
7 
8 // CHECK-LABEL: define {{.*}}i8 addrspace(271)* @_Z2f1PU10ptr32_sptri
9 // WIN-LABEL: define {{.*}}i8 addrspace(271)* @"?f1@@YAPAXPAH@Z"
f1(int * __ptr32 p)10 void * __ptr32 __uptr f1(int * __ptr32 p) { return 0; }
11 
12 // CHECK-LABEL: define {{.*}}void @_Z2f2Pi
13 // WIN-LABEL: define {{.*}}void @"?f2@@YAXPEAH@Z"
f2(int * __ptr64 p)14 void f2(int * __ptr64 p) {}
15 
16 // CHECK-LABEL: define {{.*}}i8* @_Z2f3Pi
17 // WIN-LABEL: define {{.*}}i8* @"?f3@@YAPEAXPEAH@Z"
f3(int * __ptr64 p)18 void * __ptr64 f3(int * __ptr64 p) { return 0; }
19