summaryrefslogtreecommitdiff
path: root/clang/test/PCH/typo.m
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/PCH/typo.m')
-rw-r--r--clang/test/PCH/typo.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/PCH/typo.m b/clang/test/PCH/typo.m
new file mode 100644
index 0000000..c6f0275
--- /dev/null
+++ b/clang/test/PCH/typo.m
@@ -0,0 +1,6 @@
+// RUN: %clang_cc1 -x objective-c-header -emit-pch -o %t %S/Inputs/typo.h
+// RUN: %clang_cc1 -include-pch %t -verify %s
+// In header: expected-note{{declared here}}
+void f() {
+ [NSstring alloc]; // expected-error{{unknown receiver 'NSstring'; did you mean 'NSString'?}}
+}