[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Modules / darwin_specific_modulemap_hacks.m
blob82fc6978838d747d861a7715712f8eea2d44d5d1
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
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
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
15 #import <assert.h>
16 #import <tcl-private/header.h>
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