xref: /llvm-project/clang/test/PCH/include-stream-type.cpp (revision 2a58ca7dfe117bd3ac8f41deac573fd25399143d)
1 // Test that llvm-bcanalyzer recognizes the stream type of a PCH file.
2 
3 // RUN: mkdir -p %t-dir
4 // Copying files allow for read-only checkouts to run this test.
5 // RUN: cp %S/Inputs/pragma-once2-pch.h %t-dir
6 // RUN: cp %S/Inputs/pragma-once2.h %t-dir
7 // RUN: %clang_cc1 -x c++-header -emit-pch -fmodule-format=raw -o %t %t-dir/pragma-once2-pch.h
8 // RUN: llvm-bcanalyzer -dump %t | FileCheck %s
9 //
10 // CHECK: Stream type: Clang Serialized AST
11