[PATCH] D130871: [C++20] [Modules] Handle initializer for Header Units
Iain Sandoe via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 1 15:06:14 PDT 2022
iains accepted this revision.
iains added a comment.
This revision is now accepted and ready to land.
LGTM, one small point about the test,
================
Comment at: clang/test/CodeGenCXX/module-initializer-header.cppm:5-7
+// RUN: %clang_cc1 -std=c++20 -triple=x86_64-unknown-linux-gnu -xc++-user-header -emit-header-unit %t/header.h -o %t/header.pcm
+// RUN: %clang_cc1 -std=c++20 -triple=x86_64-unknown-linux-gnu -fmodule-file=%t/header.pcm %t/M.cppm -S -emit-llvm -o - | FileCheck %t/M.cppm
+// RUN: %clang_cc1 -std=c++20 -triple=x86_64-unknown-linux-gnu -fmodule-file=%t/header.pcm %t/Use.cpp -S -emit-llvm -o - | FileCheck %t/Use.cpp
----------------
you could use `-triple %itanium_abi_triple` which would increase the test coverage to other titanium platforms.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130871/new/
https://reviews.llvm.org/D130871
More information about the cfe-commits
mailing list