diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-06-19 23:09:36 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-06-19 23:09:36 +0000 |
commit | 0be2e497aa26778cd044e98df261c1c7e1e23571 (patch) | |
tree | cb852e4359d69a53446b5bfccc23fa7de88ca395 /test/Modules | |
parent | de5743d6575952920b5938b9ed7269cd20f5bc23 (diff) |
Support non-identifier module names when preprocessing modules.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@305758 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Modules')
-rw-r--r-- | test/Modules/string_names.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Modules/string_names.cpp b/test/Modules/string_names.cpp index 43068f13c0..a6503d048d 100644 --- a/test/Modules/string_names.cpp +++ b/test/Modules/string_names.cpp @@ -1,6 +1,10 @@ // RUN: rm -rf %t // RUN: %clang_cc1 -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -fmodules-decluse -I %S/Inputs/string_names %s -fmodule-name="my/module-a" -verify +// Check that we can preprocess with string module names. +// RUN: %clang_cc1 -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -I %S/Inputs/string_names %s -fmodule-name="my/module-a" -E -frewrite-imports -o %t/test.ii +// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-decluse -I %S/Inputs/string_names %t/test.ii -fmodule-name="my/module-a" + #include "a.h" #include "b.h" // expected-error {{does not depend on a module exporting}} #include "c.h" |