[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Modules / cxx20-hu-bad-input.cpp
blob6c72d7d41646b6587da31633cfcb3e5710d2b7cb
1 // Test generation and import of simple C++20 Header Units.
3 // RUN: rm -rf %t
4 // RUN: mkdir -p %t
5 // RUN: split-file %s %t
6 // RUN: cd %t
8 // RUN: not %clang_cc1 -std=c++20 -emit-header-unit \
9 // RUN: -xc++-header-unit-header hu-01.hh \
10 // RUN: -xc++-header-unit-header hu-02.hh \
11 // RUN: -o hu-01.pcm -verify 2>&1 | FileCheck %s
13 // CHECK: (frontend): multiple inputs are not valid for header units (first extra 'hu-02.hh')
15 //--- hu-01.hh
16 int foo(int);
18 //--- hu-02.hh
19 int bar(int);