2012-05-08 08:14:45 +08:00
|
|
|
// 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)));
|
|
|
|
|
2013-10-16 01:00:53 +08:00
|
|
|
enum {
|
|
|
|
old_enum
|
|
|
|
} __attribute__((deprecated));
|
|
|
|
|
|
|
|
enum {
|
|
|
|
old_enum_plat
|
|
|
|
} __attribute__((availability(macosx,introduced=10.4,deprecated=10.5,obsoleted=10.7)
|
|
|
|
|
2012-05-08 08:29:04 +08:00
|
|
|
// 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)
|
2016-06-29 04:55:30 +08:00
|
|
|
// CHECK-2: (macos, introduced=10.4, deprecated=10.5, obsoleted=10.7)
|
2012-05-08 08:29:04 +08:00
|
|
|
|
2013-10-16 01:00:53 +08:00
|
|
|
// CHECK-2: EnumConstantDecl=old_enum:6:3 (Definition) (deprecated)
|
2016-06-29 04:55:30 +08:00
|
|
|
// CHECK-2: EnumConstantDecl=old_enum_plat:10:3 {{.*}} (macos, introduced=10.4, deprecated=10.5, obsoleted=10.7)
|