You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
585 B
16 lines
585 B
// Check that modules included in the preamble remain visible to the rest of the
|
|
// file.
|
|
|
|
// RUN: rm -rf %t.mcp
|
|
// RUN: %clang_cc1 -emit-pch -o %t.pch %s -fmodules -fmodule-map-file=%S/Inputs/modules/module.modulemap -fmodules-local-submodule-visibility -fmodules-cache-path=%t.mcp
|
|
// RUN: %clang_cc1 -include-pch %t.pch %s -fmodules -fmodule-map-file=%S/Inputs/modules/module.modulemap -fmodules-local-submodule-visibility -fmodules-cache-path=%t.mcp
|
|
|
|
#ifndef MAIN_FILE
|
|
#define MAIN_FILE
|
|
// Premable section.
|
|
#include "Inputs/modules/Foo.h"
|
|
#else
|
|
// Main section.
|
|
MyType foo;
|
|
#endif
|