aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Modules/implicit-module-remap.cpp
blob: 47927b9694016e9129b26e863d517f587b447138 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// RUN: rm -rf %t
// RUN: split-file %s %t
// RUN: cd %t
//
// RUN: %clang_cc1 -fmodules -fmodule-map-file=module.modulemap -fmodules-cache-path=%t -remap-file "test.cpp;%t/test.cpp"  %t/test.cpp

//--- a.h
#define FOO

//--- module.modulemap
module a {
  header "a.h"
}

//--- test.cpp
#include "a.h"

#ifndef FOO
#error foo
#endif