r298503 - Revert "iFix Test deprecation behavior in C89 mode as a result of r298410"
Martin Bohme via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 22 06:33:03 PDT 2017
Author: mboehme
Date: Wed Mar 22 08:33:03 2017
New Revision: 298503
URL: http://llvm.org/viewvc/llvm-project?rev=298503&view=rev
Log:
Revert "iFix Test deprecation behavior in C89 mode as a result of r298410"
This reverts commit r298433. (Required to revert r298410, see comments
there.)
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=298503&r1=298502&r2=298503&view=diff
==============================================================================
--- cfe/trunk/test/Sema/attr-deprecated.c (original)
+++ cfe/trunk/test/Sema/attr-deprecated.c Wed Mar 22 08:33:03 2017
@@ -1,6 +1,4 @@
// RUN: %clang_cc1 %s -verify -fsyntax-only
-// RUN: %clang_cc1 %s -std=c99 -verify -fsyntax-only
-// RUN: %clang_cc1 %s -std=c89 -verify -fsyntax-only
int f() __attribute__((deprecated)); // expected-note 2 {{'f' has been explicitly marked deprecated here}}
void g() __attribute__((deprecated));// expected-note {{'g' has been explicitly marked deprecated here}}
@@ -123,12 +121,11 @@ struct test22 {
__attribute((deprecated)) foo_dep e, f;
};
-typedef int test23_ty __attribute((deprecated));
+typedef int test23_ty __attribute((deprecated)); // expected-note {{'test23_ty' has been explicitly marked deprecated here}}
// Redefining a typedef is a C11 feature.
#if __STDC_VERSION__ <= 199901L
// expected-note at -3 {{'test23_ty' has been explicitly marked deprecated here}}
#else
-// expected-note at -5 {{'test23_ty' has been explicitly marked deprecated here}}
typedef int test23_ty;
#endif
test23_ty test23_v; // expected-warning {{'test23_ty' is deprecated}}
More information about the cfe-commits
mailing list