mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-05 23:52:45 +00:00
6f47e5cabf
in the same version that it is introduced. Stuff happens. llvm-svn: 137214
8 lines
682 B
C
8 lines
682 B
C
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
|
|
|
void f0() __attribute__((availability(macosx,introduced=10.4,deprecated=10.2))); // expected-warning{{feature cannot be deprecated in Mac OS X version 10.2 before it was introduced in version 10.4; attribute ignored}}
|
|
void f1() __attribute__((availability(ios,obsoleted=2.1,deprecated=3.0))); // expected-warning{{feature cannot be obsoleted in iOS version 2.1 before it was deprecated in version 3.0; attribute ignored}}
|
|
void f2() __attribute__((availability(ios,introduced=2.1,deprecated=2.1)));
|
|
|
|
void f3() __attribute__((availability(otheros,introduced=2.2))); // expected-warning{{unknown platform 'otheros' in availability macro}}
|