summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/AST/ExprConstant.cpp1
-rw-r--r--clang/test/SemaObjC/unused.m2
2 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/AST/ExprConstant.cpp b/clang/lib/AST/ExprConstant.cpp
index cbcd5e8f74b..48131f940af 100644
--- a/clang/lib/AST/ExprConstant.cpp
+++ b/clang/lib/AST/ExprConstant.cpp
@@ -2315,6 +2315,7 @@ public:
bool VisitIntegerLiteral(const IntegerLiteral *E) { return false; }
bool VisitFloatingLiteral(const FloatingLiteral *E) { return false; }
bool VisitStringLiteral(const StringLiteral *E) { return false; }
+ bool VisitObjCStringLiteral(const ObjCStringLiteral *E) { return false; }
bool VisitCharacterLiteral(const CharacterLiteral *E) { return false; }
bool VisitUnaryExprOrTypeTraitExpr(const UnaryExprOrTypeTraitExpr *E)
{ return false; }
diff --git a/clang/test/SemaObjC/unused.m b/clang/test/SemaObjC/unused.m
index 975b9a96a77..5c7542bf473 100644
--- a/clang/test/SemaObjC/unused.m
+++ b/clang/test/SemaObjC/unused.m
@@ -51,3 +51,5 @@ void test2() {
}
@end
+// rdar://10777111
+static NSString *x = @"hi"; // expected-warning {{unused variable 'x'}}
OpenPOWER on IntegriCloud