diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2011-09-29 18:40:01 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2011-09-29 18:40:01 +0000 |
commit | d71061298cc290668b9640a6a15456ea9b3a937c (patch) | |
tree | c2b3e8f2232469f06c17c91ec751edcf1f5bc138 /clang/test/Sema/attr-deprecated.c | |
parent | 196ebceb1431efd569b4ad37c5a4be0029e49047 (diff) | |
download | bcm5719-llvm-d71061298cc290668b9640a6a15456ea9b3a937c.tar.gz bcm5719-llvm-d71061298cc290668b9640a6a15456ea9b3a937c.zip |
c - Enumerators may inherit the deprecated/unavailable
attributes from the enumeration type.
// rdar://10201690
llvm-svn: 140800
Diffstat (limited to 'clang/test/Sema/attr-deprecated.c')
-rw-r--r-- | clang/test/Sema/attr-deprecated.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Sema/attr-deprecated.c b/clang/test/Sema/attr-deprecated.c index eeef0d757a7..2889f8fa114 100644 --- a/clang/test/Sema/attr-deprecated.c +++ b/clang/test/Sema/attr-deprecated.c @@ -109,7 +109,7 @@ enum __attribute__((deprecated)) Test20 { void test20() { enum Test20 f; // expected-warning {{'Test20' is deprecated}} f = test20_a; // expected-warning {{'test20_a' is deprecated}} - f = test20_b; + f = test20_b; // expected-warning {{'Test20' is deprecated}} } char test21[__has_feature(attribute_deprecated_with_message) ? 1 : -1]; |