diff options
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/PCH/objc_methods.m | 11 | ||||
| -rw-r--r-- | clang/test/SemaObjC/check-dup-objc-decls-1.m | 4 |
2 files changed, 9 insertions, 6 deletions
diff --git a/clang/test/PCH/objc_methods.m b/clang/test/PCH/objc_methods.m index 77901c38d40..818c6145ede 100644 --- a/clang/test/PCH/objc_methods.m +++ b/clang/test/PCH/objc_methods.m @@ -1,11 +1,14 @@ // Test this without pch. -// FIXME: clang-cc -include %S/objc_methods.h -fsyntax-only -verify %s && +// RUN: clang-cc -include %S/objc_methods.h -fsyntax-only -verify %s && // Test with pch. -// FIXME: clang-cc -x=objective-c -emit-pch -o %t %S/objc_methods.h && -// FIXME: clang-cc -include-pch %t -fsyntax-only -verify %s +// RUN: clang-cc -x=objective-c -emit-pch -o %t %S/objc_methods.h && +// RUN: clang-cc -include-pch %t -fsyntax-only -verify %s void func() { - TestPCH *xx = [TestPCH alloc]; + TestPCH *xx; +#if 0 + xx = [TestPCH alloc]; [xx instMethod]; +#endif } diff --git a/clang/test/SemaObjC/check-dup-objc-decls-1.m b/clang/test/SemaObjC/check-dup-objc-decls-1.m index dc9c8f44261..1dfaf090508 100644 --- a/clang/test/SemaObjC/check-dup-objc-decls-1.m +++ b/clang/test/SemaObjC/check-dup-objc-decls-1.m @@ -18,9 +18,9 @@ typedef int OBJECT; // expected-note {{previous definition is here}} @class OBJECT ; // expected-error {{redefinition of 'OBJECT' as different kind of symbol}} -typedef int Gorf; // expected-note 2 {{previous definition is here}} +typedef int Gorf; // expected-note {{previous definition is here}} -@interface Gorf @end // expected-error {{redefinition of 'Gorf' as different kind of symbol}} +@interface Gorf @end // expected-error {{redefinition of 'Gorf' as different kind of symbol}} expected-note {{previous definition is here}} void Gorf() // expected-error {{redefinition of 'Gorf' as different kind of symbol}} { |

