From d520a250b6525be399c732871cdacbfcc335bbc5 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Tue, 21 Jul 2015 18:07:47 +0000 Subject: [modules] Produce an error if -cc1 wants to implicitly build a module and no module cache has been provided, rather than creating one in the current directory. llvm-svn: 242819 --- clang/test/Modules/no-implicit-builds.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'clang/test/Modules/no-implicit-builds.cpp') diff --git a/clang/test/Modules/no-implicit-builds.cpp b/clang/test/Modules/no-implicit-builds.cpp index bfc3562dbcf..374ed5e4181 100644 --- a/clang/test/Modules/no-implicit-builds.cpp +++ b/clang/test/Modules/no-implicit-builds.cpp @@ -4,6 +4,11 @@ // RUN: %clang_cc1 -x c++ -std=c++11 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t \ // RUN: -fmodule-map-file=%S/Inputs/no-implicit-builds/b.modulemap \ // RUN: -fno-implicit-modules %s -verify +// +// Same thing if we're running -cc1 and no module cache path has been provided. +// RUN: %clang_cc1 -x c++ -std=c++11 -fmodules -fimplicit-module-maps \ +// RUN: -fmodule-map-file=%S/Inputs/no-implicit-builds/b.modulemap \ +// RUN: %s -verify // Compile the module and put it into the cache. // RUN: %clang_cc1 -x c++ -std=c++11 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t \ -- cgit v1.2.3