blob: 34a4ec9523fa2a6c5a4ca9333bd075fc3bffe725 [file] [log] [blame]
Richard Smith86dfc1e2015-06-18 22:07:00 +00001// 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"
11N::E e = N::A;