diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-06-18 22:07:00 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-06-18 22:07:00 +0000 |
commit | f5013f013edc47d0a2a11d300536721cc1c060b6 (patch) | |
tree | 98458a9efe32d44273b467d26430d52f320ab6d6 /test | |
parent | d0485fbf9b0b5814f3614f96dbab87974ecb6e0d (diff) | |
download | clang-f5013f013edc47d0a2a11d300536721cc1c060b6.tar.gz |
[modules] Merging support for enums with a local definition prior to the first
imported definition.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@240068 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-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 0000000000..34a4ec9523 --- /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; |