aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Modules/has_include_non_modular.c
blob: 2e1a06bdc6e4a0d03446e918197de46dd12fa052 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// RUN: rm -rf %t
// RUN: split-file %s %t

//--- module.modulemap
module Mod { header "mod.h" }
//--- mod.h
#if __has_include("textual.h")
#endif
//--- textual.h

//--- tu.c
#include "mod.h"

// RUN: %clang -fsyntax-only %t/tu.c -fmodules -fmodules-cache-path=%t/cache -Werror=non-modular-include-in-module