summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Bohme <mboehme@google.com>2017-03-22 13:33:03 +0000
committerMartin Bohme <mboehme@google.com>2017-03-22 13:33:03 +0000
commitb41979640f96d48231f45f6075a37ec78a6fd0fd (patch)
tree4fd2e3f75d7e2718d48e0ff9cac6c071b2db44db
parent895d377dc7e446049c742633d24250165ca29b24 (diff)
downloadbcm5719-llvm-b41979640f96d48231f45f6075a37ec78a6fd0fd.tar.gz
bcm5719-llvm-b41979640f96d48231f45f6075a37ec78a6fd0fd.zip
Revert "iFix Test deprecation behavior in C89 mode as a result of r298410"
This reverts commit r298433. (Required to revert r298410, see comments there.) llvm-svn: 298503
-rw-r--r--clang/test/Sema/attr-deprecated.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/clang/test/Sema/attr-deprecated.c b/clang/test/Sema/attr-deprecated.c
index 462f306db71..d6f560f1750 100644
--- a/clang/test/Sema/attr-deprecated.c
+++ b/clang/test/Sema/attr-deprecated.c
@@ -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@-3 {{'test23_ty' has been explicitly marked deprecated here}}
#else
-// expected-note@-5 {{'test23_ty' has been explicitly marked deprecated here}}
typedef int test23_ty;
#endif
test23_ty test23_v; // expected-warning {{'test23_ty' is deprecated}}
OpenPOWER on IntegriCloud