2009-04-20 15:06:07 +00:00
|
|
|
// Test this without pch.
|
2009-12-15 20:14:24 +00:00
|
|
|
// RUN: %clang_cc1 -include %S/objc_methods.h -fsyntax-only -verify %s
|
2009-04-20 15:06:07 +00:00
|
|
|
|
|
|
|
// Test with pch.
|
2009-12-15 20:14:24 +00:00
|
|
|
// RUN: %clang_cc1 -x objective-c -emit-pch -o %t %S/objc_methods.h
|
|
|
|
// RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %s
|
2009-04-20 15:06:07 +00:00
|
|
|
|
|
|
|
void func() {
|
2009-04-23 15:15:40 +00:00
|
|
|
TestPCH *xx;
|
2009-04-23 16:00:56 +00:00
|
|
|
TestForwardClassDecl *yy;
|
|
|
|
// FIXME:
|
|
|
|
// AliasForTestPCH *zz;
|
|
|
|
|
2009-04-23 15:15:40 +00:00
|
|
|
xx = [TestPCH alloc];
|
2011-09-08 01:46:34 +00:00
|
|
|
[xx instMethod];
|
2009-04-20 15:06:07 +00:00
|
|
|
}
|