2017-05-29 05:07:22 +08:00
|
|
|
// RUN: rm -rf %t
|
2017-06-06 02:57:56 +08:00
|
|
|
// RUN: %clang_cc1 -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -F %S/Inputs -I %S/Inputs/DependsOnModule.framework %s -verify
|
|
|
|
// RUN: %clang_cc1 -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -F %S/Inputs -I %S/Inputs/DependsOnModule.framework %s -verify -fcoroutines-ts -DCOROUTINES
|
2017-05-29 05:07:22 +08:00
|
|
|
|
|
|
|
#ifdef COROUTINES
|
|
|
|
@import DependsOnModule.Coroutines;
|
2017-06-06 02:57:56 +08:00
|
|
|
// expected-error@module.map:29 {{module 'DependsOnModule.NotCoroutines' is incompatible with feature 'coroutines'}}
|
|
|
|
@import DependsOnModule.NotCoroutines; // expected-note {{module imported here}}
|
2017-05-29 05:07:22 +08:00
|
|
|
#else
|
|
|
|
@import DependsOnModule.NotCoroutines;
|
2017-06-06 02:57:56 +08:00
|
|
|
// expected-error@module.map:25 {{module 'DependsOnModule.Coroutines' requires feature 'coroutines'}}
|
|
|
|
@import DependsOnModule.Coroutines; // expected-note {{module imported here}}
|
2017-05-29 05:07:22 +08:00
|
|
|
#endif
|