Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Modules / pr28752.cpp
blob1c7896152c9f82118c6064e9a95d2fb6a455b487
1 // RUN: rm -rf %t
2 // RUN: %clang_cc1 -std=c++11 -nostdsysteminc -I%S/Inputs/PR28752 -verify %s
3 // RUN: %clang_cc1 -std=c++11 -nostdsysteminc -fmodules -fmodule-map-file=%S/Inputs/PR28752/Subdir1/module.modulemap -fmodule-map-file=%S/Inputs/PR28752/module.modulemap -fmodules-cache-path=%t -I%S/Inputs/PR28752 -I%S/Inputs/PR28752/Subdir1 -verify %s -fmodules-local-submodule-visibility
5 #include "a.h"
6 #include "Subdir1/c.h"
7 #include <vector>
9 class TClingClassInfo {
10 std::vector<int> fIterStack;
13 TClingClassInfo *a;
14 class TClingBaseClassInfo {
15 TClingBaseClassInfo() { new TClingClassInfo(*a); }
18 namespace { struct Q; }
19 bool *p = &A<Q>::b;
21 // expected-no-diagnostics