-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[InstallAPI] Add test to validate cc1 arg forwarding (#87666)
- Loading branch information
1 parent
62b58d3
commit 1c683eb
Showing
3 changed files
with
54 additions
and
21 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
clang/test/InstallAPI/Inputs/Foundation/Foundation.framework/Headers/Foundation.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
@interface NSObject | ||
@end | ||
|
||
typedef unsigned char BOOL; | ||
#ifndef NS_AVAILABLE | ||
#define NS_AVAILABLE(x,y) __attribute__((availability(macosx,introduced=x))) | ||
#endif | ||
#ifndef NS_UNAVAILABLE | ||
#define NS_UNAVAILABLE __attribute__((unavailable)) | ||
#endif | ||
#ifndef NS_DEPRECATED_MAC | ||
#define NS_DEPRECATED_MAC(x,y) __attribute__((availability(macosx,introduced=x,deprecated=y,message="" ))); | ||
#endif | ||
|
||
@interface NSManagedObject | ||
@end | ||
|
||
@interface NSSet | ||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
; RUN: rm -rf %t | ||
; RUN: split-file %s %t | ||
; RUN: sed -e "s|DSTROOT|%/t|g" %t/input.json.in > %t/input.json | ||
|
||
; RUN: mkdir -p %t/System/Library/Frameworks | ||
; RUN: cp -r %S/Inputs/Foundation/Foundation.framework %t/System/Library/Frameworks/ | ||
; RUN: cp -r %S/Inputs/Simple/Simple.framework %t/System/Library/Frameworks/ | ||
; RUN: yaml2obj %S/Inputs/Simple/Simple.yaml -o %t/Simple | ||
; RUN: mkdir -p %t/usr/include/after | ||
|
||
; RUN: clang-installapi -target x86_64-apple-macosx10.12 \ | ||
; RUN: -install_name /System/Library/Frameworks/Simple.framework/Versions/A/Simple \ | ||
; RUN: -current_version 1.2.3 -compatibility_version 1 -o %t/Simple.tbd \ | ||
; RUN: -idirafter %t/usr/include/after \ | ||
; RUN: -F %t/System/Library/Frameworks \ | ||
; RUN: --verify-against=%t/Simple --verify-mode=ErrorsOnly \ | ||
; RUN: %t/input.json -v 2>&1 | FileCheck %s | ||
|
||
; CHECK: "-idirafter" {{.*}}/usr/include/after" | ||
; CHECK: #include "..." search starts here: | ||
; CHECK: #include <...> search starts here: | ||
; CHECK: usr/include/after | ||
; CHECK-NEXT: End of search list. | ||
|
||
;--- input.json.in | ||
{ | ||
"version" : "3", | ||
"headers" : [ | ||
{ | ||
"type" : "public", | ||
"path" : "DSTROOT/System/Library/Frameworks/Simple.framework/Headers/Basic.h" | ||
} | ||
] | ||
} |