brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 355596e Raw
24 lines · plain
1RUN: apinotes-test %S/Inputs/Frameworks/Simple.framework/Headers/Simple.apinotes > %t.result2RUN: not diff -u %S/Inputs/Frameworks/Simple.framework/Headers/Simple.apinotes %t.result | \3RUN:   tail -n +5 | \4RUN:   FileCheck %s --implicit-check-not="{{^\+}}" --implicit-check-not="{{^\-}}"5 6We expect only the nullability to be different as it is canonicalized during the7roudtrip.8 9CHECK:      -        Nullability:     N10CHECK-NEXT: +        Nullability:     Nonnull11CHECK:      -        Nullability:     O12CHECK-NEXT: +        Nullability:     Optional13CHECK:      -        Nullability:     U14CHECK-NEXT: +        Nullability:     Unspecified15CHECK:      -        Nullability:     S16CHECK-NEXT: +        Nullability:     Unspecified17CHECK:      -        Nullability:     Scalar18CHECK-NEXT: +        Nullability:     Unspecified19 20# The roundtrip will add document markers. It is hard to remove the last line of the21# file in a cross-platform manner, so just assert it here to avoid a test failure due22# to the implicit check not.23# CHECK: +24