[cfe-commits] r130291 - /cfe/trunk/test/SemaCXX/warn-deprecated-header.cpp

Chandler Carruth chandlerc at gmail.com
Tue Apr 26 22:25:42 PDT 2011


Author: chandlerc
Date: Wed Apr 27 00:25:42 2011
New Revision: 130291

URL: http://llvm.org/viewvc/llvm-project?rev=130291&view=rev
Log:
Add the test that I intended to submit with r130055, but forgot to add.
Apologies.

Added:
    cfe/trunk/test/SemaCXX/warn-deprecated-header.cpp

Added: cfe/trunk/test/SemaCXX/warn-deprecated-header.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/warn-deprecated-header.cpp?rev=130291&view=auto
==============================================================================
--- cfe/trunk/test/SemaCXX/warn-deprecated-header.cpp (added)
+++ cfe/trunk/test/SemaCXX/warn-deprecated-header.cpp Wed Apr 27 00:25:42 2011
@@ -0,0 +1,6 @@
+// RUN: %clang_cc1 -fsyntax-only -fdeprecated-macro -verify %s
+// RUN: %clang_cc1 -fsyntax-only -Werror %s
+
+#ifdef __DEPRECATED
+#warning This file is deprecated. // expected-warning {{This file is deprecated.}}
+#endif





More information about the cfe-commits mailing list