26 lines · plain
1; RUN: split-file %s %t2; RUN: not llvm-as < %t/dw_lang_with_version.ll -disable-output 2>&1 | FileCheck %s --check-prefix=WRONG-ATTR3; RUN: not llvm-as < %t/overflow.ll -disable-output 2>&1 | FileCheck %s --check-prefix=OVERFLOW4; RUN: not llvm-as < %t/version_without_name.ll -disable-output 2>&1 | FileCheck %s --check-prefix=NO-NAME5; RUN: not llvm-as < %t/negative.ll -disable-output 2>&1 | FileCheck %s --check-prefix=NEGATIVE6 7; WRONG-ATTR: error: 'sourceLanguageVersion' requires an associated 'sourceLanguageName' on !DICompileUnit8; OVERFLOW: error: value for 'sourceLanguageVersion' too large, limit is 42949672959; NEGATIVE: error: expected unsigned integer10; NO-NAME: error: missing one of 'language' or 'sourceLanguageName', required for !DICompileUnit11 12;--- dw_lang_with_version.ll13!0 = distinct !DICompileUnit(language: DW_LANG_C, sourceLanguageVersion: 1,14 file: !DIFile(filename: "", directory: ""))15 16;--- overflow.ll17!0 = distinct !DICompileUnit(sourceLanguageName: DW_LNAME_C, sourceLanguageVersion: 4294967298)18 19;--- negative.ll20!0 = distinct !DICompileUnit(sourceLanguageName: DW_LNAME_C, sourceLanguageVersion: -1,21 file: !DIFile(filename: "", directory: ""))22 23;--- version_without_name.ll24!0 = distinct !DICompileUnit(sourceLanguageVersion: 1,25 file: !DIFile(filename: "", directory: ""))26