11 lines · cpp
1// Test that llvm-bcanalyzer recognizes the stream type of a PCH file.2 3// RUN: mkdir -p %t-dir4// Copying files allow for read-only checkouts to run this test.5// RUN: cp %S/Inputs/pragma-once2-pch.h %t-dir6// RUN: cp %S/Inputs/pragma-once2.h %t-dir7// RUN: %clang_cc1 -x c++-header -emit-pch -fmodule-format=raw -o %t %t-dir/pragma-once2-pch.h8// RUN: llvm-bcanalyzer -dump %t | FileCheck %s9//10// CHECK: Stream type: Clang Serialized AST11