brintos

brintos / llvm-project-archived public Read only

0
0
Text · 572 B · 12b4ab6 Raw
21 lines · cpp
1// RUN: rm -fR %t2// RUN: split-file %s %t3// RUN: cd %t4// RUN: %clang_cc1 -verify -std=c++20 -emit-header-unit -xc++-user-header bz0.h5// RUN: %clang_cc1 -verify -std=c++20 -fmodule-file=bz0.pcm -xc++-user-header bz1.h -E -o bz1.output.h6// RUN: FileCheck %s < bz1.output.h7// RUN: %clang_cc1 -std=c++20 -fmodule-file=bz0.pcm -emit-header-unit -xc++-user-header bz1.output.h8 9//--- bz0.h10// expected-no-diagnostics11#pragma once12 13void foo();14 15//--- bz1.h16// expected-no-diagnostics17import "bz0.h";18 19// CHECK: # 1 ".{{/|\\\\?}}bz1.h"20// CHECK: import ".{{/|\\\\?}}bz0.h";21