mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:23:11 +01:00
1f3d696f06
We are about to add enum attributes with AttrKind numbers >= 63. This means we cannot use AttrKind #63 to test for an invalid attribute number in the RAW format anymore. This patch changes the number of an invalid attribute to #255. There is no change to the character of the tests. Differential Revision: https://reviews.llvm.org/D64531 llvm-svn: 365722
17 lines
788 B
Plaintext
17 lines
788 B
Plaintext
; RUN: not llvm-c-test --module-dump < %S/Inputs/invalid.ll.bc 2>&1 | FileCheck %s
|
|
; RUN: not llvm-c-test --lazy-module-dump < %S/Inputs/invalid.ll.bc 2>&1 | FileCheck %s
|
|
|
|
CHECK: Error parsing bitcode: Unknown attribute kind (255)
|
|
|
|
|
|
; RUN: not llvm-c-test --new-module-dump < %S/Inputs/invalid.ll.bc 2>&1 | FileCheck --check-prefix=NEW %s
|
|
; RUN: not llvm-c-test --lazy-new-module-dump < %S/Inputs/invalid.ll.bc 2>&1 | FileCheck --check-prefix=NEW %s
|
|
|
|
NEW: Error with new bitcode parser: Unknown attribute kind (255)
|
|
|
|
; RUN: llvm-c-test --test-diagnostic-handler < %S/Inputs/invalid.ll.bc 2>&1 | FileCheck --check-prefix=DIAGNOSTIC %s
|
|
|
|
DIAGNOSTIC: Executing diagnostic handler
|
|
DIAGNOSTIC: Diagnostic severity is of type error
|
|
DIAGNOSTIC: Diagnostic handler was called while loading module
|