aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeGenCXX/zos-mangle-ptr-size-address-space.cpp
blob: d14ce117b2be4aef31e629ea6c138eb1553cb8e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// RUN: %clang_cc1 -fzos-extensions -emit-llvm -triple s390x-ibm-zos -x c++ -o - %s | FileCheck %s --check-prefixes=CHECK

// CHECK-LABEL: define void @_Z2f1v()
void f1() {}

// CHECK-LABEL: define void @_Z2f2Pi(ptr addrspace(1) noundef %p32)
void f2(int * __ptr32 p32) {}

// CHECK-LABEL: define noundef ptr addrspace(1) @_Z2f3Pi(ptr addrspace(1) noundef %p32)
int * __ptr32 f3(int * __ptr32 p32) {
  return p32;
}

// CHECK-LABEL: define noundef ptr @_Z2f4PPi(ptr noundef %p32)
int * __ptr32 *f4(int * __ptr32 *p32) {
  return p32;
}