[cfe-commits] r146321 - /cfe/trunk/test/Sema/attr-availability.c
NAKAMURA Takumi
geek4civic at gmail.com
Fri Dec 9 23:50:30 PST 2011
Author: chapuni
Date: Sat Dec 10 01:50:30 2011
New Revision: 146321
URL: http://llvm.org/viewvc/llvm-project?rev=146321&view=rev
Log:
test/Sema/attr-availability.c: Add explicit -triple x86_64-apple-darwin9, for now.
Modified:
cfe/trunk/test/Sema/attr-availability.c
Modified: cfe/trunk/test/Sema/attr-availability.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/attr-availability.c?rev=146321&r1=146320&r2=146321&view=diff
==============================================================================
--- cfe/trunk/test/Sema/attr-availability.c (original)
+++ cfe/trunk/test/Sema/attr-availability.c Sat Dec 10 01:50:30 2011
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -verify %s
+// RUN: %clang_cc1 -triple x86_64-apple-darwin9 -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}}
More information about the cfe-commits
mailing list