From 7bea1d42d8cd8c90496b1a3306fc56814cebbde7 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Wed, 5 Mar 2014 20:55:36 +0000 Subject: When building a module from the command line via -emit-module, add an entry to the module build stack for the module being built, so we can correctly detect recursive module builds. llvm-svn: 203006 --- clang/test/Modules/recursive.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/test/Modules/recursive.c') diff --git a/clang/test/Modules/recursive.c b/clang/test/Modules/recursive.c index 668ba38dffa..7941df68405 100644 --- a/clang/test/Modules/recursive.c +++ b/clang/test/Modules/recursive.c @@ -2,8 +2,8 @@ // RUN: not %clang_cc1 -fmodules -x objective-c -fmodules-cache-path=%t -I %S/Inputs %s 2>&1 | FileCheck %s #include "recursive1.h" -// FIXME: rm -rf %t -// FIXME: not %clang_cc1 -fmodules -x objective-c -fmodules-cache-path=%t -emit-module -fmodule-name=recursive1 %S/Inputs/module.map 2>&1 | FileCheck %s +// RUN: rm -rf %t +// RUN: not %clang_cc1 -fmodules -x objective-c -fmodules-cache-path=%t -emit-module -fmodule-name=recursive1 %S/Inputs/module.map 2>&1 | FileCheck %s // CHECK: While building module 'recursive1'{{( imported from .*/recursive.c:3)?}}: // CHECK-NEXT: While building module 'recursive2' imported from {{.*}}Inputs/recursive1.h:1: -- cgit v1.2.3