llvm-6502/test/Assembler/invalid-dicompileunit-language-overflow.ll

10 lines
375 B
LLVM
Raw Normal View History

; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s
; CHECK-NOT: error:
!0 = !DICompileUnit(language: 65535,
file: !DIFile(filename: "a", directory: "b"))
; CHECK: <stdin>:[[@LINE+1]]:31: error: value for 'language' too large, limit is 65535
!1 = !DICompileUnit(language: 65536,
file: !DIFile(filename: "a", directory: "b"))