blob: cebfbc6d29f6f69514b8235ae5cdcb333e11d066 [file] [log] [blame]
Douglas Gregorfba18aa2011-09-15 22:00:41 +00001
2// RUN: rm -rf %t
Douglas Gregore3a82562011-11-30 18:02:36 +00003// RUN: %clang_cc1 -x objective-c -Wauto-import -fmodule-cache-path %t -fauto-module-import -F %S/Inputs %s -verify
Douglas Gregorfba18aa2011-09-15 22:00:41 +00004
Douglas Gregore3a82562011-11-30 18:02:36 +00005#include <DependsOnModule/DependsOnModule.h> // expected-warning{{treating #include as an import of module 'DependsOnModule'}}
Douglas Gregorfba18aa2011-09-15 22:00:41 +00006
7#ifdef MODULE_H_MACRO
8# error MODULE_H_MACRO should have been hidden
9#endif
10
11#ifdef DEPENDS_ON_MODULE
12# error DEPENDS_ON_MODULE should have been hidden
13#endif
Douglas Gregorecc2c092011-12-01 22:20:10 +000014
Douglas Gregor209977c2011-12-05 17:40:25 +000015Module *mod; // expected-error{{unknown type name 'Module'}}
16
17#import <AlsoDependsOnModule/AlsoDependsOnModule.h> // expected-warning{{treating #import as an import of module 'AlsoDependsOnModule'}}
18Module *mod2;
19