2013-04-27 05:33:35 +08:00
|
|
|
// RUN: rm -rf %t.mcp
|
2015-06-16 08:08:24 +08:00
|
|
|
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps %s -emit-pch -o %t1.pch -fmodules-cache-path=%t.mcp -I %S/Inputs/redecls
|
|
|
|
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps %s -emit-pch -o %t2.pch -include-pch %t1.pch -fmodules-cache-path=%t.mcp -I %S/Inputs/redecls
|
|
|
|
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps %s -fsyntax-only -include-pch %t2.pch -I %S/Inputs/redecls -fmodules-cache-path=%t.mcp -verify
|
2013-04-27 05:33:35 +08:00
|
|
|
|
|
|
|
#ifndef HEADER1
|
|
|
|
#define HEADER1
|
|
|
|
|
|
|
|
@import a;
|
|
|
|
|
|
|
|
#elif !defined(HEADER2)
|
|
|
|
#define HEADER2
|
|
|
|
|
|
|
|
@class AA;
|
|
|
|
@import b;
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
// rdar://13712705
|
|
|
|
@interface SS : AA
|
|
|
|
@end
|
|
|
|
|
|
|
|
#warning parsed this
|
|
|
|
#endif
|
|
|
|
// expected-warning@-2{{parsed this}}
|