Richard Smith | 86dfc1e | 2015-06-18 22:07:00 +0000 | [diff] [blame^] | 1 | // RUN: rm -rf %t |
2 | // RUN: mkdir %t | ||||
3 | // RUN: echo 'namespace N { enum E { A }; }' > %t/a.h | ||||
4 | // RUN: echo '#include "a.h"' > %t/b.h | ||||
5 | // RUN: touch %t/x.h | ||||
6 | // RUN: echo 'module B { module b { header "b.h" } module x { header "x.h" } }' > %t/b.modulemap | ||||
7 | // RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -x c++ -fmodule-map-file=%t/b.modulemap %s -I%t -verify | ||||
8 | // expected-no-diagnostics | ||||
9 | #include "a.h" | ||||
10 | #include "x.h" | ||||
11 | N::E e = N::A; |