forked from OSchip/llvm-project
[modules] PR20786: add (already passing) regression test from the bug report.
llvm-svn: 216683
This commit is contained in:
parent
b43d51de95
commit
13ad07aca3
|
@ -0,0 +1,2 @@
|
|||
#include "random.h"
|
||||
#include "TFormula.h"
|
|
@ -0,0 +1 @@
|
|||
#include "TMath.h"
|
|
@ -0,0 +1 @@
|
|||
#include "random.h"
|
|
@ -0,0 +1,3 @@
|
|||
module TMath { header "TMath.h" }
|
||||
module TFormula { header "TFormula.h" }
|
||||
module TBranchProxy { header "TBranchProxy.h" }
|
|
@ -0,0 +1,12 @@
|
|||
namespace std {
|
||||
template<typename> struct mersenne_twister_engine {
|
||||
friend bool operator==(const mersenne_twister_engine &,
|
||||
const mersenne_twister_engine &) {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
struct random_device {
|
||||
mersenne_twister_engine<int> mt; // require complete type
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
// RUN: rm -rf %T
|
||||
// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%T -fmodule-name=TBranchProxy -emit-module -x c++ %S/Inputs/PR20786/module.modulemap
|
Loading…
Reference in New Issue