xref: /minix3/external/bsd/llvm/dist/clang/test/Modules/requires.mm (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc// RUN: rm -rf %t
2*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -Wauto-import -fmodules-cache-path=%t -fmodules -F %S/Inputs %s -verify
3*f4a2713aSLionel Sambuc
4*f4a2713aSLionel Sambuc@import DependsOnModule.CXX;
5*f4a2713aSLionel Sambuc@import DependsOnModule.NotCXX; // expected-error{{module 'DependsOnModule.NotCXX' is incompatible with feature 'cplusplus'}}
6*f4a2713aSLionel Sambuc@import DependsOnModule.NotObjC; // expected-error{{module 'DependsOnModule.NotObjC' is incompatible with feature 'objc'}}
7