2009-04-20 23:06:07 +08:00
|
|
|
// Test this without pch.
|
2012-07-25 15:26:32 +08:00
|
|
|
// RUN: %clang_cc1 -include %S/objc_methods.h -fsyntax-only -Wno-objc-root-class -verify %s
|
2009-04-20 23:06:07 +08:00
|
|
|
|
|
|
|
// Test with pch.
|
2009-12-16 04:14:24 +08: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 23:06:07 +08:00
|
|
|
|
|
|
|
void func() {
|
2009-04-23 23:15:40 +08:00
|
|
|
TestPCH *xx;
|
2009-04-24 00:00:56 +08:00
|
|
|
TestForwardClassDecl *yy;
|
|
|
|
// FIXME:
|
|
|
|
// AliasForTestPCH *zz;
|
|
|
|
|
2009-04-23 23:15:40 +08:00
|
|
|
xx = [TestPCH alloc];
|
2011-09-08 09:46:34 +08:00
|
|
|
[xx instMethod];
|
2009-04-20 23:06:07 +08:00
|
|
|
}
|