aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeGenCUDA/amdgpu-alias-undef-symbols.cu
blob: d2ee39230d5a14b9c9e33840ca3d28e4eb13396f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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) {
}