[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / PCH / include-stream-type.cpp
blob30e2586b0bf0791de63f6f1761fe5fc7bddd4a2f
1 // Test that llvm-bcanalyzer recognizes the stream type of a PCH file.
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