diff options
author | Justin Bogner <mail@justinbogner.com> | 2014-07-15 01:24:35 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2014-07-15 01:24:35 +0000 |
commit | 73466400b2dcba1d67a2538684c55907221ade7a (patch) | |
tree | c444e8a873985b04a73dee0971a6c328548415bf /clang/unittests/libclang/LibclangTest.cpp | |
parent | 15fe7a530d352aecea65f952e6b321635b4fe2a8 (diff) | |
download | llvm-73466400b2dcba1d67a2538684c55907221ade7a.zip llvm-73466400b2dcba1d67a2538684c55907221ade7a.tar.gz llvm-73466400b2dcba1d67a2538684c55907221ade7a.tar.bz2 |
VirtualFileSystem: Correctly generate the mapping for an empty VFS
In r209332 I accidentally broke generation of empty VFS maps. This
fixes the issue and adds a test.
llvm-svn: 213028
Diffstat (limited to 'clang/unittests/libclang/LibclangTest.cpp')
-rw-r--r-- | clang/unittests/libclang/LibclangTest.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/unittests/libclang/LibclangTest.cpp b/clang/unittests/libclang/LibclangTest.cpp index ef162bc..ee56e22 100644 --- a/clang/unittests/libclang/LibclangTest.cpp +++ b/clang/unittests/libclang/LibclangTest.cpp @@ -316,6 +316,16 @@ TEST(libclang, VirtualFileOverlay_TopLevel) { T.map("/foo.h", "/real/foo.h"); } +TEST(libclang, VirtualFileOverlay_Empty) { + const char *contents = + "{\n" + " 'version': 0,\n" + " 'roots': [\n" + " ]\n" + "}\n"; + TestVFO T(contents); +} + TEST(libclang, ModuleMapDescriptor) { const char *Contents = "framework module TestFrame {\n" |