diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2015-06-21 14:00:56 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2015-06-21 14:00:56 +0000 |
commit | 2e645aa5697838f16ec570eb07c2bee7e13d0e0b (patch) | |
tree | a764184c2fc9486979b074250b013a0937ee64e5 /test/Modules/merge-enumerators.cpp | |
parent | 798321d8eb5630cd4a8f490a4f25e32ef195fb07 (diff) |
Notes
Diffstat (limited to 'test/Modules/merge-enumerators.cpp')
-rw-r--r-- | test/Modules/merge-enumerators.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Modules/merge-enumerators.cpp b/test/Modules/merge-enumerators.cpp new file mode 100644 index 000000000000..34a4ec9523fa --- /dev/null +++ b/test/Modules/merge-enumerators.cpp @@ -0,0 +1,11 @@ +// RUN: rm -rf %t +// RUN: mkdir %t +// RUN: echo 'namespace N { enum E { A }; }' > %t/a.h +// RUN: echo '#include "a.h"' > %t/b.h +// RUN: touch %t/x.h +// RUN: echo 'module B { module b { header "b.h" } module x { header "x.h" } }' > %t/b.modulemap +// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -x c++ -fmodule-map-file=%t/b.modulemap %s -I%t -verify +// expected-no-diagnostics +#include "a.h" +#include "x.h" +N::E e = N::A; |