| 1 |
// RUN: %clang_cc1 -fzos-extensions -emit-llvm -triple s390x-ibm-zos -x c++ -o - %s | FileCheck %s --check-prefixes=CHECK |
| 2 |
|
| 3 |
// CHECK-LABEL: define void @_Z2f1v() |
| 4 |
void f1() {} |
| 5 |
|
| 6 |
// CHECK-LABEL: define void @_Z2f2Pi(ptr addrspace(1) noundef %p32) |
| 7 |
void f2(int * __ptr32 p32) {} |
| 8 |
|
| 9 |
// CHECK-LABEL: define noundef ptr addrspace(1) @_Z2f3Pi(ptr addrspace(1) noundef %p32) |
| 10 |
int * __ptr32 f3(int * __ptr32 p32) { |
| 11 |
return p32; |
| 12 |
} |
| 13 |
|
| 14 |
// CHECK-LABEL: define noundef ptr @_Z2f4PPi(ptr noundef %p32) |
| 15 |
int * __ptr32 *f4(int * __ptr32 *p32) { |
| 16 |
return p32; |
| 17 |
} |