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 |
4 | |
5 | #include "a.h" |
6 | #include "Subdir1/c.h" |
7 | #include <vector> |
8 | |
9 | class TClingClassInfo { |
10 | std::vector<int> fIterStack; |
11 | }; |
12 | |
13 | TClingClassInfo *a; |
14 | class TClingBaseClassInfo { |
15 | TClingBaseClassInfo() { new TClingClassInfo(*a); } |
16 | }; |
17 | |
18 | namespace { struct Q; } |
19 | bool *p = &A<Q>::b; |
20 | |
21 | // expected-no-diagnostics |
22 | |
23 | |