[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / PCH / pending-ids.m
blobcf502da7e4a48f12c359a2b1238279e115230440
1 // UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}}
2 // Test for rdar://10278815
4 // Without PCH
5 // RUN: %clang_cc1 -fsyntax-only -verify -include %s %s
7 // With PCH
8 // RUN: %clang_cc1 %s -emit-pch -o %t
9 // RUN: %clang_cc1 -emit-llvm-only -verify %s -include-pch %t -debug-info-kind=limited
11 // expected-no-diagnostics
13 #ifndef HEADER
14 #define HEADER
15 //===----------------------------------------------------------------------===//
16 // Header
18 typedef char BOOL;
20 @interface NSString
21 + (BOOL)meth;
22 @end
24 static NSString * const cake = @"cake";
26 //===----------------------------------------------------------------------===//
27 #else
28 //===----------------------------------------------------------------------===//
30 @interface Foo {
31   BOOL ivar;
33 @end
35 //===----------------------------------------------------------------------===//
36 #endif