Debian Codegraph @

clang/test/Headers/header_unit_preprocessed_output.cpp

raw
1 // RUN: rm -fR %t
2 // RUN: split-file %s %t
3 // RUN: cd %t
4 // RUN: %clang_cc1 -verify -std=c++20 -emit-header-unit -xc++-user-header bz0.h
5 // RUN: %clang_cc1 -verify -std=c++20 -fmodule-file=bz0.pcm -xc++-user-header bz1.h -E -o bz1.output.h
6 // RUN: FileCheck %s < bz1.output.h
7 // RUN: %clang_cc1 -std=c++20 -fmodule-file=bz0.pcm -emit-header-unit -xc++-user-header bz1.output.h
8
9 //--- bz0.h
10 // expected-no-diagnostics
11 #pragma once
12
13 void foo();
14
15 //--- bz1.h
16 // expected-no-diagnostics
17 import "bz0.h";
18
19 // CHECK: # 1 ".{{/|\\\\?}}bz1.h"
20 // CHECK: import ".{{/|\\\\?}}bz0.h";