1 ; RUN: llc -mtriple=amdgcn-amd-amdhsa -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck %s
3 ; Make sure llc does not crash for invalid opencl version metadata.
6 ; CHECK: amdhsa.version:
11 !opencl.ocl.version = !{}
12 !llvm.module.flags = !{!0}
13 !0 = !{i32 1, !"amdgpu_code_object_version", i32 300}