aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/MicrosoftExtensions.c
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2012-04-23 20:30:52 +0000
committerFariborz Jahanian <fjahanian@apple.com>2012-04-23 20:30:52 +0000
commitd6724367519b4f98dcce091854549282c11d70a0 (patch)
treeaa30a4e8e944f3723cb2b29ad7ef33e5578a3580 /test/Sema/MicrosoftExtensions.c
parent87380aaf4273b2259fa75790f2f544c4514cc763 (diff)
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
Diffstat (limited to 'test/Sema/MicrosoftExtensions.c')
-rw-r--r--test/Sema/MicrosoftExtensions.c4
1 files changed, 2 insertions, 2 deletions
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}}