summaryrefslogtreecommitdiffstats
path: root/test/Index/availability.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Index/availability.c')
-rw-r--r--test/Index/availability.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Index/availability.c b/test/Index/availability.c
new file mode 100644
index 0000000..e6b1273
--- /dev/null
+++ b/test/Index/availability.c
@@ -0,0 +1,10 @@
+// Run lines below; this test is line- and column-sensitive.
+
+void foo(void) __attribute__((availability(macosx,introduced=10.4,deprecated=10.5,obsoleted=10.7), availability(ios,introduced=3.2,deprecated=4.1)));
+
+// RUN: c-index-test -test-load-source all %s > %t
+// RUN: FileCheck -check-prefix=CHECK-1 %s < %t
+// RUN: FileCheck -check-prefix=CHECK-2 %s < %t
+// CHECK-1: (ios, introduced=3.2, deprecated=4.1)
+// CHECK-2: (macosx, introduced=10.4, deprecated=10.5, obsoleted=10.7)
+
OpenPOWER on IntegriCloud