summaryrefslogtreecommitdiff
path: root/test/Modules/typo.m
blob: 7e5108df6bede888bf47b5aecd9b839adf8c3c7a (plain)
1
2
3
4
5
6
7
8
// RUN: rm -rf %t
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs -x objective-c-header %S/Inputs/typo.h -emit-pch -o %t.pch
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs -include-pch %t.pch %s -verify

void test() {
  [Nsstring alloc]; // expected-error {{unknown receiver 'Nsstring'; did you mean 'NSString'}}
                    // expected-note@typo.h:* {{here}}
}