[cfe-commits] r128334 - /cfe/trunk/test/Sema/attr-availability-ios.c
Douglas Gregor
dgregor at apple.com
Sat Mar 26 03:47:34 PDT 2011
Author: dgregor
Date: Sat Mar 26 05:47:34 2011
New Revision: 128334
URL: http://llvm.org/viewvc/llvm-project?rev=128334&view=rev
Log:
Test attribute merging for the availability attribute.
Modified:
cfe/trunk/test/Sema/attr-availability-ios.c
Modified: cfe/trunk/test/Sema/attr-availability-ios.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/attr-availability-ios.c?rev=128334&r1=128333&r2=128334&view=diff
==============================================================================
--- cfe/trunk/test/Sema/attr-availability-ios.c (original)
+++ cfe/trunk/test/Sema/attr-availability-ios.c Sat Mar 26 05:47:34 2011
@@ -6,10 +6,16 @@
void f3(int) __attribute__((availability(ios,introduced=3.0)));
void f4(int) __attribute__((availability(macosx,introduced=10.1,deprecated=10.3,obsoleted=10.5), availability(ios,introduced=2.0,deprecated=2.1,obsoleted=3.0))); // expected-note{{explicitly marked unavailable}}
+void f5(int) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(ios,deprecated=3.0)));
+void f6(int) __attribute__((availability(ios,deprecated=3.0)));
+void f6(int) __attribute__((availability(ios,introduced=2.0)));
+
void test() {
f0(0); // expected-warning{{'f0' is deprecated: first deprecated in iOS 2.1}}
f1(0);
f2(0); // expected-warning{{'f2' is deprecated: first deprecated in iOS 3.0}}
f3(0);
f4(0); // expected-error{{f4' is unavailable: obsoleted in iOS 3.0}}
+ f5(0); // expected-warning{{'f5' is deprecated: first deprecated in iOS 3.0}}
+ f6(0); // expected-warning{{'f6' is deprecated: first deprecated in iOS 3.0}}
}
More information about the cfe-commits
mailing list