Don't warn for an unused label if it has 'unused' attribute. Fixes rdar://8483139.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114954 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Sema/warn-unused-label.c b/test/Sema/warn-unused-label.c
index b5979be..1634460 100644
--- a/test/Sema/warn-unused-label.c
+++ b/test/Sema/warn-unused-label.c
@@ -4,5 +4,8 @@
   a:
   goto a;
   b: // expected-warning{{unused}}
+  c: __attribute__((unused));
+  d: __attribute__((noreturn)); // expected-warning {{The only valid attribute for labels is 'unused'}}
+  goto d;
   return;
 }