1// RUN: rm -rf %t.mcp
2// RUN: %clang_cc1 -fmodules -x objective-c -emit-module -fmodule-name=a %S/module.map -fmodules-cache-path=%t.mcp
3// RUN: %clang_cc1 -fmodules -x objective-c -emit-module -fmodule-name=b %S/module.map -fmodules-cache-path=%t.mcp
4// RUN: %clang_cc1 -fmodules %s -emit-pch -o %t1.pch -fmodules-cache-path=%t.mcp
5// RUN: %clang_cc1 -fmodules %s -emit-pch -o %t2.pch -include-pch %t1.pch -fmodules-cache-path=%t.mcp
6// RUN: %clang_cc1 -fmodules %s -fsyntax-only -include-pch %t2.pch -fmodules-cache-path=%t.mcp -verify
7
8#ifndef HEADER1
9#define HEADER1
10
11@import a;
12
13#elif !defined(HEADER2)
14#define HEADER2
15
16@class AA;
17@import b;
18
19#else
20
21// rdar://13712705
22@interface SS : AA
23@end
24
25#warning parsed this
26#endif
27// expected-warning@-2{{parsed this}}
28