brintos

brintos / llvm-project-archived public Read only

0
0
Text · 648 B · 0f9a250 Raw
25 lines · plain
1// RUN: rm -rf %t.mcp2// RUN: %clang_cc1 -fmodules -fimplicit-module-maps %s -emit-pch -o %t1.pch -fmodules-cache-path=%t.mcp -I %S/Inputs/redecls3// 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/redecls4// RUN: %clang_cc1 -fmodules -fimplicit-module-maps %s -fsyntax-only -include-pch %t2.pch -I %S/Inputs/redecls -fmodules-cache-path=%t.mcp -verify5 6#ifndef HEADER17#define HEADER18 9@import a;10 11#elif !defined(HEADER2)12#define HEADER213 14@class AA;15@import b;16 17#else18 19@interface SS : AA20@end21 22#warning parsed this23#endif24// expected-warning@-2{{parsed this}}25