blob: c6aaaeb71fed52883d9381827ff9c8e936c3cd7c [file] [log] [blame]
Rafael Espindola3ee23a92015-02-03 00:49:57 +00001; RUN: not llvm-c-test --module-dump < %S/Inputs/invalid.ll.bc 2>&1 | FileCheck %s
Rafael Espindolaf382b882015-12-18 13:58:05 +00002; RUN: not llvm-c-test --lazy-module-dump < %S/Inputs/invalid.ll.bc 2>&1 | FileCheck %s
Rafael Espindola3ee23a92015-02-03 00:49:57 +00003
Nicolai Haehnle84c9f992016-07-04 08:01:29 +00004CHECK: Error parsing bitcode: Unknown attribute kind (63)
Rafael Espindola2339ffe2015-12-18 23:46:42 +00005
6
7; RUN: not llvm-c-test --new-module-dump < %S/Inputs/invalid.ll.bc 2>&1 | FileCheck --check-prefix=NEW %s
8; RUN: not llvm-c-test --lazy-new-module-dump < %S/Inputs/invalid.ll.bc 2>&1 | FileCheck --check-prefix=NEW %s
9
Nicolai Haehnle84c9f992016-07-04 08:01:29 +000010NEW: Error with new bitcode parser: Unknown attribute kind (63)
Jeroen Ketemaad659c32016-04-08 09:19:02 +000011
12; RUN: llvm-c-test --test-diagnostic-handler < %S/Inputs/invalid.ll.bc 2>&1 | FileCheck --check-prefix=DIAGNOSTIC %s
13
14DIAGNOSTIC: Executing diagnostic handler
15DIAGNOSTIC: Diagnostic severity is of type error
16DIAGNOSTIC: Diagnostic handler was called while loading module