aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Modules/pr28744.cpp
blob: 2089872a2a75a2a6fcfc7520dc789cb9fcc447cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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