repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[clang][Driver] Support simplified triple versions for config files (#111387)
[llvm-project.git]
/
clang
/
test
/
Modules
/
implicit-module-remap.cpp
blob
47927b9694016e9129b26e863d517f587b447138
1
// RUN: rm -rf %t
2
// RUN: split-file %s %t
3
// RUN: cd %t
4
//
5
// RUN: %clang_cc1 -fmodules -fmodule-map-file=module.modulemap -fmodules-cache-path=%t -remap-file "test.cpp;%t/test.cpp" %t/test.cpp
6
7
//--- a.h
8
#define FOO
9
10
//--- module.modulemap
11
module a
{
12
header
"a.h"
13
}
14
15
//--- test.cpp
16
#include
"a.h"
17
18
#ifndef FOO
19
#error foo
20
#endif
21