diff options
Diffstat (limited to 'clang/test/PCH/pending-ids.m')
-rw-r--r-- | clang/test/PCH/pending-ids.m | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/clang/test/PCH/pending-ids.m b/clang/test/PCH/pending-ids.m new file mode 100644 index 0000000..b612d89 --- /dev/null +++ b/clang/test/PCH/pending-ids.m @@ -0,0 +1,33 @@ +// Test for rdar://10278815 + +// Without PCH +// RUN: %clang_cc1 -fsyntax-only -verify -include %s %s + +// With PCH +// RUN: %clang_cc1 %s -emit-pch -o %t +// RUN: %clang_cc1 -emit-llvm-only -verify %s -include-pch %t -g + +#ifndef HEADER +#define HEADER +//===----------------------------------------------------------------------===// +// Header + +typedef char BOOL; + +@interface NSString ++ (BOOL)meth; +@end + +static NSString * const cake = @"cake"; + +//===----------------------------------------------------------------------===// +#else +//===----------------------------------------------------------------------===// + +@interface Foo { + BOOL ivar; +} +@end + +//===----------------------------------------------------------------------===// +#endif |