blob: aff34d114f0256efee2107be70d60c2d9ac22b3d [file] [log] [blame]
Chris Lattnerf7830b62009-04-22 05:31:53 +00001// Test this without pch.
Daniel Dunbar4fcfde42009-11-08 01:45:36 +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.
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00005// RUN: clang-cc -x=objective-c -emit-pch -o %t %S/objc_methods.h
Steve Naroffa7503a72009-04-23 15:15:40 +00006// 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}