; RUN: not opt -S %s -o /dev/null 2>&1 | FileCheck %s ; CHECK: value for 'memorySpace' too large, limit is @var = dso_local global i32 0, align 4, !dbg !0 !llvm.dbg.cu = !{!2} !llvm.module.flags = !{!6, !7} !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression()) !1 = distinct !DIGlobalVariable(name: "var", scope: !2, file: !3, line: 1, type: !5, isLocal: false, isDefinition: true, memorySpace: 65536) !2 = distinct !DICompileUnit(language: DW_LANG_OpenCL, file: !3, producer: "clang version 16.0.0", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, globals: !4, splitDebugInlining: false, nameTableKind: None) !3 = !DIFile(filename: "test.cl", directory: "/") !4 = !{!0} !5 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed) !6 = !{i32 7, !"Dwarf Version", i32 5} !7 = !{i32 2, !"Debug Info Version", i32 3}