1// RUN: mlir-opt %s --gpu-module-to-binary --verify-diagnostics 2 3module attributes {gpu.container_module} { 4 // expected-error @below {{the module has no target attributes}} 5 gpu.module @kernel_module1 { 6 llvm.func @kernel(%arg0: i32, %arg1: !llvm.ptr, 7 %arg2: !llvm.ptr, %arg3: i64, %arg4: i64, 8 %arg5: i64) attributes {gpu.kernel} { 9 llvm.return 10 } 11 } 12} 13