blob: 1a198b18d380d6f57190de9dff755217b5e772aa [file] [log] [blame]
Chris Lattnerf7830b62009-04-22 05:31:53 +00001// Test this without pch.
Steve Naroffa7503a72009-04-23 15:15:40 +00002// RUN: clang-cc -include %S/objc_methods.h -fsyntax-only -verify %s &&
Chris Lattnerf7830b62009-04-22 05:31:53 +00003
4// Test with pch.
Steve Naroffa7503a72009-04-23 15:15:40 +00005// RUN: clang-cc -x=objective-c -emit-pch -o %t %S/objc_methods.h &&
6// RUN: clang-cc -include-pch %t -fsyntax-only -verify %s
Chris Lattnerf7830b62009-04-22 05:31:53 +00007
8void func() {
Steve Naroffa7503a72009-04-23 15:15:40 +00009 TestPCH *xx;
Steve Naroff8f06f842009-04-23 16:00:56 +000010 TestForwardClassDecl *yy;
11// FIXME:
12// AliasForTestPCH *zz;
13
Steve Naroffa7503a72009-04-23 15:15:40 +000014 xx = [TestPCH alloc];
Chris Lattnerf7830b62009-04-22 05:31:53 +000015 [xx instMethod];
Chris Lattnerf7830b62009-04-22 05:31:53 +000016}