2011-12-31 12:05:44 +08:00
|
|
|
// RUN: rm -rf %t
|
2017-06-06 02:57:56 +08:00
|
|
|
// RUN: %clang_cc1 -Wauto-import -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -F %S/Inputs -I %S/Inputs %s -verify -fmodule-feature custom_req1
|
2011-12-31 12:05:44 +08:00
|
|
|
|
2017-06-06 02:57:56 +08:00
|
|
|
// expected-error@DependsOnModule.framework/module.map:7 {{module 'DependsOnModule.CXX' requires feature 'cplusplus'}}
|
|
|
|
@import DependsOnModule.CXX; // expected-note {{module imported here}}
|
2013-10-29 06:18:19 +08:00
|
|
|
@import DependsOnModule.NotCXX;
|
2017-06-06 02:57:56 +08:00
|
|
|
// expected-error@DependsOnModule.framework/module.map:15 {{module 'DependsOnModule.NotObjC' is incompatible with feature 'objc'}}
|
|
|
|
@import DependsOnModule.NotObjC; // expected-note {{module imported here}}
|
2015-02-03 05:56:15 +08:00
|
|
|
@import DependsOnModule.CustomReq1; // OK
|
2017-06-06 02:57:56 +08:00
|
|
|
// expected-error@DependsOnModule.framework/module.map:22 {{module 'DependsOnModule.CustomReq2' requires feature 'custom_req2'}}
|
|
|
|
@import DependsOnModule.CustomReq2; // expected-note {{module imported here}}
|
2015-07-14 03:48:52 +08:00
|
|
|
|
|
|
|
@import RequiresWithMissingHeader; // OK
|
2017-06-06 02:57:56 +08:00
|
|
|
// expected-error@module.map:* {{module 'RequiresWithMissingHeader.HeaderBefore' requires feature 'missing'}}
|
|
|
|
@import RequiresWithMissingHeader.HeaderBefore; // expected-note {{module imported here}}
|
|
|
|
// expected-error@module.map:* {{module 'RequiresWithMissingHeader.HeaderAfter' requires feature 'missing'}}
|
|
|
|
@import RequiresWithMissingHeader.HeaderAfter; // expected-note {{module imported here}}
|