| 1 |
// REQUIRES: amdgpu-registered-target |
| 2 |
|
| 3 |
// RUN: %clang -target x86_64-unknown-linux-gnu --offload-arch=gfx906 --cuda-device-only -nogpulib -nogpuinc -x hip -emit-llvm -S -o - %s \ |
| 4 |
// RUN: -fgpu-rdc -O3 -mllvm -amdgpu-early-inline-all=true -mllvm -amdgpu-function-calls=false | \ |
| 5 |
// RUN: FileCheck %s |
| 6 |
|
| 7 |
#include "Inputs/cuda.h" |
| 8 |
|
| 9 |
struct B { |
| 10 |
|
| 11 |
// CHECK: @_ZN1BC1Ei = hidden unnamed_addr alias void (ptr, i32), ptr @_ZN1BC2Ei |
| 12 |
__device__ B(int x); |
| 13 |
}; |
| 14 |
|
| 15 |
__device__ B::B(int x) { |
| 16 |
} |