mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-05-13 17:37:00 +00:00

building a module. Prior to this change, the private header's content would only be included if the header were included by another header in the same module. If not (if the private header is only used by the .cc files of the module, or is included from outside the module via -Wno-private-header), a #include of that file would be silently ignored. llvm-svn: 257222
9 lines
422 B
C++
9 lines
422 B
C++
// RUN: rm -rf %t
|
|
// RUN: %clang_cc1 -fmodules-cache-path=%t -fmodules -fmodules-decluse -fmodule-name=A -fmodule-map-file=%S/Inputs/separate_map_tree/maps/modulea.map -I %S/Inputs/separate_map_tree/src %s -verify
|
|
|
|
#include "common.h"
|
|
#include "public-in-b.h" // expected-error {{private header}}
|
|
#include "public-in-c.h"
|
|
#include "private-in-c.h" // expected-error {{private header}}
|
|
const int val = common + b + c + c_;
|