[modules] Add missing test file for b21ee08e57173102b67bc18237b135550 (#129221)

The commit missed a test file.
This commit is contained in:
Haojian Wu 2025-02-28 13:50:18 +01:00 committed by GitHub
parent 1a6f9fd87f
commit a19979166c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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