21 lines · plain
1/* The run lines are below, because this test is line- and2 column-number sensitive. */3void atAvailable() {4 if (@available(macOS 10.10, *)) {5 6 }7 if (__builtin_available(iOS 8, *)) {8 }9}10 11// RUN: c-index-test -code-completion-at=%s:4:18 %s | FileCheck %s12// RUN: c-index-test -code-completion-at=%s:7:27 %s | FileCheck %s13// CHECK: {TypedText iOS} (40)14// CHECK: {TypedText iOSApplicationExtension} (40)15// CHECK: {TypedText macOS} (40)16// CHECK: {TypedText macOSApplicationExtension} (40)17// CHECK: {TypedText tvOS} (40)18// CHECK: {TypedText tvOSApplicationExtension} (40)19// CHECK: {TypedText watchOS} (40)20// CHECK: {TypedText watchOSApplicationExtension} (40)21