mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-28 05:56:05 +00:00
17 lines
479 B
Plaintext
17 lines
479 B
Plaintext
// REQUIRES: amdgpu-registered-target
|
|
|
|
// RUN: %clang -target x86_64-unknown-linux-gnu --offload-arch=gfx906 --cuda-device-only -nogpulib -nogpuinc -x hip -emit-llvm -S -o - %s \
|
|
// RUN: -fgpu-rdc -O3 -mllvm -amdgpu-early-inline-all=true -mllvm -amdgpu-function-calls=false | \
|
|
// RUN: FileCheck %s
|
|
|
|
#include "Inputs/cuda.h"
|
|
|
|
struct B {
|
|
|
|
// CHECK: @_ZN1BC1Ei = hidden unnamed_addr alias void (ptr, i32), ptr @_ZN1BC2Ei
|
|
__device__ B(int x);
|
|
};
|
|
|
|
__device__ B::B(int x) {
|
|
}
|