| 1 |
// RUN: rm -rf %t |
| 2 |
// 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 |
| 3 |
// expected-no-diagnostics |
| 4 |
|
| 5 |
@import Darwin.C.excluded; // no error, header is implicitly 'textual' |
| 6 |
@import Tcl.Private; // no error, header is implicitly 'textual' |
| 7 |
@import IOKit.avc; // no error, cplusplus requirement removed |
| 8 |
|
| 9 |
#if defined(DARWIN_C_EXCLUDED) |
| 10 |
#error assert.h should be textual |
| 11 |
#elif defined(TCL_PRIVATE) |
| 12 |
#error tcl-private/header.h should be textual |
| 13 |
#endif |
| 14 |
|
| 15 |
#import <assert.h> |
| 16 |
#import <tcl-private/header.h> |
| 17 |
|
| 18 |
#if !defined(DARWIN_C_EXCLUDED) |
| 19 |
#error assert.h missing |
| 20 |
#elif !defined(TCL_PRIVATE) |
| 21 |
#error tcl-private/header.h missing |
| 22 |
#endif |