18 lines · cpp
1// RUN: rm -rf %t2// RUN: %clang_cc1 -std=c++11 -I%S/Inputs/PR28794 -verify %s3// RUN: %clang_cc1 -std=c++11 -fmodules -fmodule-map-file=%S/Inputs/PR28794/module.modulemap -fmodules-cache-path=%t -I%S/Inputs/PR28794/ -verify %s4 5#include "Subdir/Empty.h"6#include "LibAHeader.h"7 8BumpPtrAllocatorImpl<> &getPreprocessorAllocator();9class B {10 struct ModuleMacroInfo {11 ModuleMacroInfo *getModuleInfo() {12 return new (getPreprocessorAllocator()) ModuleMacroInfo();13 }14 };15};16 17// expected-no-diagnostics18