brintos

brintos / llvm-project-archived public Read only

0
0
Text · 752 B · 82fc697 Raw
23 lines · plain
1// RUN: rm -rf %t2// 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-only3// expected-no-diagnostics4 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 removed8 9#if defined(DARWIN_C_EXCLUDED)10#error assert.h should be textual11#elif defined(TCL_PRIVATE)12#error tcl-private/header.h should be textual13#endif14 15#import <assert.h>16#import <tcl-private/header.h>17 18#if !defined(DARWIN_C_EXCLUDED)19#error assert.h missing20#elif !defined(TCL_PRIVATE)21#error tcl-private/header.h missing22#endif23