improve the string literal comparison warning to not call @encode's "string literals".
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68407 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/SemaObjC/exprs.m b/test/SemaObjC/exprs.m
index 342449d..d51d135 100644
--- a/test/SemaObjC/exprs.m
+++ b/test/SemaObjC/exprs.m
@@ -15,5 +15,7 @@
"bar"
@"baz"
" b\0larg"; // expected-warning {{literal contains NUL character}}
+
+ if (@encode(int) == "foo") { } // expected-warning {{result of comparison against @encode is unspecified}}
}