[cfe-commits] r64549 - /cfe/trunk/test/Sema/attr-deprecated.c
Chris Lattner
sabre at nondot.org
Sat Feb 14 00:27:44 PST 2009
Author: lattner
Date: Sat Feb 14 02:27:44 2009
New Revision: 64549
URL: http://llvm.org/viewvc/llvm-project?rev=64549&view=rev
Log:
new tests, it would be nice to not warn on the second one.
Modified:
cfe/trunk/test/Sema/attr-deprecated.c
Modified: cfe/trunk/test/Sema/attr-deprecated.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/attr-deprecated.c?rev=64549&r1=64548&r2=64549&view=diff
==============================================================================
--- cfe/trunk/test/Sema/attr-deprecated.c (original)
+++ cfe/trunk/test/Sema/attr-deprecated.c Sat Feb 14 02:27:44 2009
@@ -23,3 +23,12 @@
int w() {
return var; // expected-warning {{'var' is deprecated}}
}
+
+int old_fn() __attribute__ ((deprecated));
+int old_fn();
+int (*fn_ptr)() = old_fn; // expected-warning {{'old_fn' is deprecated}}
+
+int old_fn() {
+ return old_fn()+1; // expected-warning {{'old_fn' is deprecated}}
+}
+
More information about the cfe-commits
mailing list