]> granicus.if.org Git - clang/commitdiff
Add the test that I intended to submit with r130055, but forgot to add.
authorChandler Carruth <chandlerc@gmail.com>
Wed, 27 Apr 2011 05:25:42 +0000 (05:25 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 27 Apr 2011 05:25:42 +0000 (05:25 +0000)
Apologies.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130291 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaCXX/warn-deprecated-header.cpp [new file with mode: 0644]

diff --git a/test/SemaCXX/warn-deprecated-header.cpp b/test/SemaCXX/warn-deprecated-header.cpp
new file mode 100644 (file)
index 0000000..f6ac2cb
--- /dev/null
@@ -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