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