brintos

brintos / llvm-project-archived public Read only

0
0
Text · 680 B · 1c78961 Raw
23 lines · cpp
1// RUN: rm -rf %t2// RUN: %clang_cc1 -std=c++11 -nostdsysteminc -I%S/Inputs/PR28752 -verify %s3// 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-visibility4 5#include "a.h"6#include "Subdir1/c.h"7#include <vector>8 9class TClingClassInfo {10  std::vector<int> fIterStack;11};12 13TClingClassInfo *a;14class TClingBaseClassInfo {15  TClingBaseClassInfo() { new TClingClassInfo(*a); }16};17 18namespace { struct Q; }19bool *p = &A<Q>::b;20 21// expected-no-diagnostics22 23