summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/auto-module-import.c
blob: a161f33efa94fc66672fcd1522669547ba987298 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13

// RUN: rm -rf %t
// RUN: %clang_cc1 -x objective-c -Wauto-import -fmodule-cache-path %t -fauto-module-import -F %S/Inputs %s -verify

#include <DependsOnModule/DependsOnModule.h> // expected-warning{{treating #include as an import of module 'DependsOnModule'}}

#ifdef MODULE_H_MACRO
#  error MODULE_H_MACRO should have been hidden
#endif

#ifdef DEPENDS_ON_MODULE
#  error DEPENDS_ON_MODULE should have been hidden
#endif
OpenPOWER on IntegriCloud