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