From d6724367519b4f98dcce091854549282c11d70a0 Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Mon, 23 Apr 2012 20:30:52 +0000 Subject: with -Wdeprecated, include a note to its deprecated declaration location. // rdar://10893232 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155385 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Sema/MicrosoftExtensions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/Sema/MicrosoftExtensions.c') diff --git a/test/Sema/MicrosoftExtensions.c b/test/Sema/MicrosoftExtensions.c index fb0c6bde9a..52cb88277c 100644 --- a/test/Sema/MicrosoftExtensions.c +++ b/test/Sema/MicrosoftExtensions.c @@ -87,11 +87,11 @@ typedef struct { AA; // expected-warning {{anonymous structs are a Microsoft extension}} } BB; -__declspec(deprecated("This is deprecated")) enum DE1 { one, two } e1; +__declspec(deprecated("This is deprecated")) enum DE1 { one, two } e1; // expected-note {{'e1' declared here}} struct __declspec(deprecated) DS1 { int i; float f; }; #define MY_TEXT "This is also deprecated" -__declspec(deprecated(MY_TEXT)) void Dfunc1( void ) {} +__declspec(deprecated(MY_TEXT)) void Dfunc1( void ) {} // expected-note {{'Dfunc1' declared here}} void test( void ) { e1 = one; // expected-warning {{'e1' is deprecated: This is deprecated}} -- cgit v1.2.3-18-g5258