]> granicus.if.org Git - clang/commitdiff
Fix test
authorDouglas Gregor <dgregor@apple.com>
Wed, 27 Apr 2011 04:02:56 +0000 (04:02 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 27 Apr 2011 04:02:56 +0000 (04:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130285 91177308-0d34-0410-b5e6-96231b3b80d8

test/FixIt/typo.m

index 28c0529af477154446c6750eb00f38ffce4976da..ecb207ee3917b10c20761d4277d39567cf6c5b59 100644 (file)
@@ -1,6 +1,6 @@
 // RUN: %clang_cc1 -fsyntax-only -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -DNON_FIXITS -verify %s
 // RUN: cp %s %t
-// RUN: %clang_cc1 -x objective-c -fsyntax-only -fobjc-nonfragile-abi -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fixit %t  || true
+// RUN: not %clang_cc1 -x objective-c -fsyntax-only -fobjc-nonfragile-abi -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fixit %t
 // RUN: %clang_cc1 -x objective-c -fsyntax-only -fobjc-nonfragile-abi -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -pedantic -Werror %t
 // RUN: grep "@implementation Sub3" %t
 
@@ -9,7 +9,7 @@
 @end
 
 void test() {
-  NSstring *str = @"A string"; // expected-error{{use of undeclared identifier 'NSstring'; did you mean 'NSString'?}}
+  NSstring *str = @"A string"; // expected-error{{unknown type name 'NSstring'; did you mean 'NSString'?}}
 }
 
 @protocol P1