1 // Run lines below; this test is line- and column-sensitive. 2 3 void foo(void) __attribute__((availability(macosx,introduced=10.4,deprecated=10.5,obsoleted=10.7), availability(ios,introduced=3.2,deprecated=4.1))); 4 5 enum { 6 old_enum 7 } __attribute__((deprecated)); 8 9 enum { 10 old_enum_plat 11 } __attribute__((availability(macosx,introduced=10.4,deprecated=10.5,obsoleted=10.7) 12 13 // RUN: c-index-test -test-load-source all %s > %t 14 // RUN: FileCheck -check-prefix=CHECK-1 %s < %t 15 // RUN: FileCheck -check-prefix=CHECK-2 %s < %t 16 // CHECK-1: (ios, introduced=3.2, deprecated=4.1) 17 // CHECK-2: (macos, introduced=10.4, deprecated=10.5, obsoleted=10.7) 18 19 // CHECK-2: EnumConstantDecl=old_enum:6:3 (Definition) (deprecated) 20 // CHECK-2: EnumConstantDecl=old_enum_plat:10:3 {{.*}} (macos, introduced=10.4, deprecated=10.5, obsoleted=10.7) 21