[flang][cuda] Do not register global constants (#118582)
[llvm-project.git] / llvm / test / tools / llvm-readtapi / compare-flags.test
blob82e0230d4cd898d7eae1493ef6958118ff848deb
1 ; RUN: rm -rf %t
2 ; RUN: split-file %s %t  
3 ; RUN: not llvm-readtapi --compare %t/tbdv4.tbd  %t/tbdv5.tbd -o %t/output.txt 2>&1 | FileCheck %s --allow-empty 
4 ; RUN: FileCheck %s --check-prefix FILEOUT <  %t/output.txt 
6 ; CHECK-NOT: error: 
7 ; CHECK-NOT: warning: 
9 ; FILEOUT: < {{.*}}tbdv4.tbd
10 ; FILEOUT: > {{.*}}tbdv5.tbd
12 ; FILEOUT:      Two Level Namespace
13 ; FILEOUT-NEXT:         < true
14 ; FILEOUT-NEXT:         > false
15 ; FILEOUT-NEXT: Shared Cache Ineligible
16 ; FILEOUT-NEXT:         < true
17 ; FILEOUT-NEXT:         > false
21 //--- tbdv4.tbd
22 --- !tapi-tbd
23 tbd-version:     4
24 targets:         [ arm64-macos ]
25 flags:           [ not_app_extension_safe, not_for_dyld_shared_cache ]
26 install-name:    '/usr/lib/libFake.dylib'
27 ...
29 //--- tbdv5.tbd
31     "main_library": {
32         "flags": [
33             {
34                 "attributes": [
35                     "not_app_extension_safe",
36                     "flat_namespace"
37                 ]
38             }
39         ],
40         "install_names": [
41             {
42                 "name": "/usr/lib/libFake.dylib"
43             }
44         ],
45         "target_info": [
46             {
47                 "min_deployment": "13",
48                 "target": "arm64-macos"
49             }
50         ]
51     },
52     "tapi_tbd_version": 5