summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-08-10 15:31:35 +0000
committerDouglas Gregor <dgregor@apple.com>2011-08-10 15:31:35 +0000
commit6f47e5cabfbe986add98a347289bb1e2be9afede (patch)
treeba0dd502d5eebab6decf0f2f0d0be9d69fac8e11 /clang/test
parent6680421015b1e79bdf177b7c895acbe086fb48e7 (diff)
downloadbcm5719-llvm-6f47e5cabfbe986add98a347289bb1e2be9afede.tar.gz
bcm5719-llvm-6f47e5cabfbe986add98a347289bb1e2be9afede.zip
For the availability attribute, allow a declaration to be deprecated
in the same version that it is introduced. Stuff happens. llvm-svn: 137214
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Sema/attr-availability.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/Sema/attr-availability.c b/clang/test/Sema/attr-availability.c
index 1314cf5a5b0..f6ed13190ed 100644
--- a/clang/test/Sema/attr-availability.c
+++ b/clang/test/Sema/attr-availability.c
@@ -2,5 +2,6 @@
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 f2() __attribute__((availability(otheros,introduced=2.2))); // expected-warning{{unknown platform 'otheros' in availability macro}}
+void f3() __attribute__((availability(otheros,introduced=2.2))); // expected-warning{{unknown platform 'otheros' in availability macro}}
OpenPOWER on IntegriCloud