summaryrefslogtreecommitdiffstats
path: root/test/Index/complete-available.m
blob: 6c0a2622be039566b15cba71f01fe2b0d550131a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* The run lines are below, because this test is line- and
   column-number sensitive. */
void atAvailable() {
  if (@available(macOS 10.10, *)) {

  }
  if (__builtin_available(iOS 8, *)) {
  }
}

// RUN: c-index-test -code-completion-at=%s:4:18 %s | FileCheck %s
// RUN: c-index-test -code-completion-at=%s:7:27 %s | FileCheck %s
// CHECK: {TypedText iOS} (40)
// CHECK: {TypedText iOSApplicationExtension} (40)
// CHECK: {TypedText macOS} (40)
// CHECK: {TypedText macOSApplicationExtension} (40)
// CHECK: {TypedText tvOS} (40)
// CHECK: {TypedText tvOSApplicationExtension} (40)
// CHECK: {TypedText watchOS} (40)
// CHECK: {TypedText watchOSApplicationExtension} (40)