Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / Headers / header_unit_preprocessed_output.cpp
blob12b4ab6159f34685318193a2306029b31b57fa21
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
9 //--- bz0.h
10 // expected-no-diagnostics
11 #pragma once
13 void foo();
15 //--- bz1.h
16 // expected-no-diagnostics
17 import "bz0.h";
19 // CHECK: # 1 ".{{/|\\\\?}}bz1.h"
20 // CHECK: import ".{{/|\\\\?}}bz0.h";