From: Chandler Carruth Date: Wed, 27 Apr 2011 05:25:42 +0000 (+0000) Subject: Add the test that I intended to submit with r130055, but forgot to add. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eeeb2a25505d304b354fcfa3b8361e546387bc1b;p=clang Add the test that I intended to submit with r130055, but forgot to add. Apologies. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130291 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/SemaCXX/warn-deprecated-header.cpp b/test/SemaCXX/warn-deprecated-header.cpp new file mode 100644 index 0000000000..f6ac2cb639 --- /dev/null +++ b/test/SemaCXX/warn-deprecated-header.cpp @@ -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