summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/pr28752.cpp
blob: 1c7896152c9f82118c6064e9a95d2fb6a455b487 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// RUN: rm -rf %t
// RUN: %clang_cc1 -std=c++11 -nostdsysteminc -I%S/Inputs/PR28752 -verify %s
// 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

#include "a.h"
#include "Subdir1/c.h"
#include <vector>

class TClingClassInfo {
  std::vector<int> fIterStack;
};

TClingClassInfo *a;
class TClingBaseClassInfo {
  TClingBaseClassInfo() { new TClingClassInfo(*a); }
};

namespace { struct Q; }
bool *p = &A<Q>::b;

// expected-no-diagnostics

OpenPOWER on IntegriCloud