]> granicus.if.org Git - clang/commitdiff
Add -fmodules-cache-path to test/Headers/c11.c
authorBen Langmuir <blangmuir@apple.com>
Mon, 10 Mar 2014 23:17:14 +0000 (23:17 +0000)
committerBen Langmuir <blangmuir@apple.com>
Mon, 10 Mar 2014 23:17:14 +0000 (23:17 +0000)
This started failing for me the last time someone modified the AST file
format. It would be nice if we could just have lit take care of the
module cache used during testing for us, but this helps in the meantime.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203511 91177308-0d34-0410-b5e6-96231b3b80d8

test/Headers/c11.c

index 2debcae3949c59f0c5a550fddb1b409c2d847c35..c1454c855a631f2c1b8e3779085c757d20350360 100644 (file)
@@ -1,5 +1,6 @@
+// RUN: rm -rf %t
 // RUN: %clang_cc1 -fsyntax-only -verify -std=c11 %s
-// RUN: %clang_cc1 -fsyntax-only -verify -std=c11 -fmodules %s
+// RUN: %clang_cc1 -fsyntax-only -verify -std=c11 -fmodules -fmodules-cache-path=%t %s
 // RUN: %clang_cc1 -fsyntax-only -verify -std=c11 -ffreestanding %s
 // RUN: %clang_cc1 -fsyntax-only -verify -std=c11 -triple i686-pc-win32 -fmsc-version=1700 %s