summaryrefslogtreecommitdiffstats
path: root/test/Modules/darwin_specific_modulemap_hacks.m
blob: 82fc6978838d747d861a7715712f8eea2d44d5d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// RUN: rm -rf %t
// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -fimplicit-module-maps -isystem %S/Inputs/System/usr/include -triple x86_64-apple-darwin10 %s -verify -fsyntax-only
// expected-no-diagnostics

@import Darwin.C.excluded; // no error, header is implicitly 'textual'
@import Tcl.Private;       // no error, header is implicitly 'textual'
@import IOKit.avc;         // no error, cplusplus requirement removed

#if defined(DARWIN_C_EXCLUDED)
#error assert.h should be textual
#elif defined(TCL_PRIVATE)
#error tcl-private/header.h should be textual
#endif

#import <assert.h>
#import <tcl-private/header.h>

#if !defined(DARWIN_C_EXCLUDED)
#error assert.h missing
#elif !defined(TCL_PRIVATE)
#error tcl-private/header.h missing
#endif