brintos

brintos / llvm-project-archived public Read only

0
0
Text · 334 B · 47927b9 Raw
22 lines · cpp
1// RUN: rm -rf %t2// RUN: split-file %s %t3// RUN: cd %t4//5// RUN: %clang_cc1 -fmodules -fmodule-map-file=module.modulemap -fmodules-cache-path=%t -remap-file "test.cpp;%t/test.cpp"  %t/test.cpp6 7//--- a.h8#define FOO9 10//--- module.modulemap11module a {12  header "a.h"13}14 15//--- test.cpp16#include "a.h"17 18#ifndef FOO19#error foo20#endif21 22