[clang] [modules] Add missing test file for b21ee08e57173102b67bc18237b135550 (PR #129221)
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 28 02:22:43 PST 2025
https://github.com/hokein created https://github.com/llvm/llvm-project/pull/129221
The commit missed a test file.
>From 7edbcad61eefd03fbb3cdf4d7759b0e41e348946 Mon Sep 17 00:00:00 2001
From: Haojian Wu <hokein.wu at gmail.com>
Date: Fri, 28 Feb 2025 11:20:33 +0100
Subject: [PATCH] [modules] Add missing test file for
b21ee08e57173102b67bc18237b13555066862fd
The commit missed a test file.
---
clang/test/Modules/pr28744.cpp | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
create mode 100644 clang/test/Modules/pr28744.cpp
diff --git a/clang/test/Modules/pr28744.cpp b/clang/test/Modules/pr28744.cpp
new file mode 100644
index 0000000000000..2089872a2a75a
--- /dev/null
+++ b/clang/test/Modules/pr28744.cpp
@@ -0,0 +1,17 @@
+// RUN: rm -rf %t
+// RUN: %clang_cc1 -std=c++11 -I%S/Inputs/PR28794 -verify %s
+// RUN: %clang_cc1 -std=c++11 -fmodules -fmodule-map-file=%S/Inputs/PR28794/module.modulemap -fmodules-cache-path=%t -I%S/Inputs/PR28794/ -verify %s
+
+#include "Subdir/Empty.h"
+#include "LibAHeader.h"
+
+BumpPtrAllocatorImpl<> &getPreprocessorAllocator();
+class B {
+ struct ModuleMacroInfo {
+ ModuleMacroInfo *getModuleInfo() {
+ return new (getPreprocessorAllocator()) ModuleMacroInfo();
+ }
+ };
+};
+
+// expected-no-diagnostics
More information about the cfe-commits
mailing list