20 lines · cpp
1// Test generation and import of simple C++20 Header Units.2 3// RUN: rm -rf %t4// RUN: mkdir -p %t5// RUN: split-file %s %t6// RUN: cd %t7 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 %s12 13// CHECK: (frontend): multiple inputs are not valid for header units (first extra 'hu-02.hh')14 15//--- hu-01.hh16int foo(int);17 18//--- hu-02.hh19int bar(int);20