blob: 331f4bf92e928df2c395c56dd49d067019241c1f [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 second element in the Indirection Table must be a pointer; %struct.anon.1 = type { ptr, ptr } is incorrect.
%struct.anon.1 = type { ptr, ptr }
%class.anon = type { i64, %struct.anon.1, %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
}