blob: 258bcfba55eca8b6e52aacc0d997b614aab99224 [file] [log] [blame]
; REQUIRES: amdgpu-registered-target
; RUN: not opt -S -mtriple=amdgcn-amd-amdhsa -passes=hipstdpar-select-accelerator-code \
; RUN: %s 2>&1 | FileCheck %s
; CHECK: error: The first element in the Indirection Table must be an integer; %struct.anon.1 = type { ptr, ptr } is incorrect.
%struct.anon.1 = type { ptr, ptr }
%class.anon = type { %struct.anon.1, ptr, %struct.anon.1 }
@a = external hidden local_unnamed_addr addrspace(1) global ptr, align 8
@__hipstdpar_symbol_indirection_table = weak_odr protected addrspace(4) externally_initialized constant %class.anon zeroinitializer, align 8
define amdgpu_kernel void @store(ptr %p) {
entry:
store ptr %p, ptr addrspace(1) @a, align 8
ret void
}