17 lines · plain
1// RUN: %clang_cc1 -fcuda-is-device -triple amdgcn-amd-amdhsa -target-cpu gfx906 \2// RUN: -emit-llvm -o - %s | FileCheck %s3 4#include "Inputs/cuda.h"5 6// CHECK-LABEL: define {{.*}}@_ZN1AC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %this)7// CHECK: store ptr %this, ptr %this.addr.ascast8// CHECK: %this1 = load ptr, ptr %this.addr.ascast9// CHECK: store ptr addrspace(1) {{.*}} @_ZTV1A{{.*}}, ptr %this110struct A {11 __device__ virtual void vf() {}12};13 14__global__ void kern() {15 A a;16}17