16 lines · c
1// Tests that llvm-bcanalyzer recognizes the correct "stream type" for various2// common bitstream formats.3 4// RUN: llvm-bcanalyzer -dump %s.ast | FileCheck %s -check-prefix=CHECK-AST5// CHECK-AST: Stream type: Clang Serialized AST6 7// RUN: llvm-bcanalyzer -dump %s.dia | FileCheck %s -check-prefix=CHECK-DIAG8// CHECK-DIAG: Stream type: Clang Serialized Diagnostics9 10// RUN: not llvm-bcanalyzer -dump %s.ast.incomplete 2>&1 | FileCheck %s -check-prefix=CHECK-INCOMPLETE11// RUN: not llvm-bcanalyzer -dump %s.dia.incomplete 2>&1 | FileCheck %s -check-prefix=CHECK-INCOMPLETE12// CHECK-INCOMPLETE: Bitcode stream should be a multiple of 4 bytes in length13 14// RUN: llvm-bcanalyzer -dump %s.opt.bitstream | FileCheck %s -check-prefix=CHECK-REMARKS15// CHECK-REMARKS: Stream type: LLVM Remarks16