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