1 // RUN: %clang_cc1 -fcuda-is-device -triple amdgcn-amd-amdhsa -target-cpu gfx906 \
2 // RUN: -emit-llvm -o - %s | FileCheck %s
4 #include "Inputs/cuda.h"
6 // CHECK-LABEL: define {{.*}}@_ZN1AC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %this)
7 // CHECK: store ptr %this, ptr %this.addr.ascast
8 // CHECK: %this1 = load ptr, ptr %this.addr.ascast
9 // CHECK: store ptr addrspace(1) {{.*}} @_ZTV1A{{.*}}, ptr %this1
11 __device__ virtual void vf() {}
14 __global__ void kern() {