summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaObjC/exprs.m
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaObjC/exprs.m')
-rw-r--r--clang/test/SemaObjC/exprs.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/SemaObjC/exprs.m b/clang/test/SemaObjC/exprs.m
index 342449d9975..d51d135fa27 100644
--- a/clang/test/SemaObjC/exprs.m
+++ b/clang/test/SemaObjC/exprs.m
@@ -15,5 +15,7 @@ void test2() {
"bar"
@"baz"
" b\0larg"; // expected-warning {{literal contains NUL character}}
+
+ if (@encode(int) == "foo") { } // expected-warning {{result of comparison against @encode is unspecified}}
}
OpenPOWER on IntegriCloud