forked from OSchip/llvm-project
11 lines
643 B
C++
11 lines
643 B
C++
// RUN: rm -rf %t
|
|
// RUN: %clang_cc1 -x objective-c++ -fmodules-cache-path=%t -fmodules -fmodule-map-file=%S/Inputs/modular_maps/modulea.map -fmodule-map-file=%S/Inputs/modular_maps/modulec.map -I %S/Inputs/modular_maps %s -verify
|
|
// RUN: %clang_cc1 -x objective-c++ -fmodules-cache-path=%t -fmodules -fmodule-map-file=%S/Inputs/modular_maps/modulec.map -fmodule-map-file=%S/Inputs/modular_maps/modulea.map -I %S/Inputs/modular_maps %s -verify
|
|
|
|
#include "common.h"
|
|
#include "a.h"
|
|
#include "b.h" // expected-error {{private header}}
|
|
@import C;
|
|
const int v = a + c + x;
|
|
const int val = a + b + c + x; // expected-error {{undeclared identifier}}
|