Skip to content

Commit a199791

Browse files
authored
[modules] Add missing test file for b21ee08 (#129221)
The commit missed a test file.
1 parent 1a6f9fd commit a199791

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

clang/test/Modules/pr28744.cpp

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// RUN: rm -rf %t
2+
// RUN: %clang_cc1 -std=c++11 -I%S/Inputs/PR28794 -verify %s
3+
// 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
4+
5+
#include "Subdir/Empty.h"
6+
#include "LibAHeader.h"
7+
8+
BumpPtrAllocatorImpl<> &getPreprocessorAllocator();
9+
class B {
10+
struct ModuleMacroInfo {
11+
ModuleMacroInfo *getModuleInfo() {
12+
return new (getPreprocessorAllocator()) ModuleMacroInfo();
13+
}
14+
};
15+
};
16+
17+
// expected-no-diagnostics

0 commit comments

Comments
 (0)