On Dec 11, 2012, at 5:02 , NAKAMURA Takumi <[email protected]> wrote:
> 2012/11/8 Douglas Gregor <[email protected]>: >> Author: dgregor >> Date: Wed Nov 7 11:46:15 2012 >> New Revision: 167539 >> >> URL: http://llvm.org/viewvc/llvm-project?rev=167539&view=rev >> Log: >> When loading a module fails because it is out of date, rebuild that >> module in place. <rdar://problem/10138913> > >> Added: cfe/trunk/test/Modules/modify-module.m >> URL: >> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Modules/modify-module.m?rev=167539&view=auto >> ============================================================================== >> --- cfe/trunk/test/Modules/modify-module.m (added) >> +++ cfe/trunk/test/Modules/modify-module.m Wed Nov 7 11:46:15 2012 >> @@ -0,0 +1,23 @@ >> +// Test that if we modify one of the input files used to form a >> +// header, that module and dependent modules get rebuilt. >> + >> +// RUN: rm -rf %t >> +// RUN: mkdir -p %t/include >> +// RUN: cp %S/Inputs/Modified/A.h %t/include >> +// RUN: cp %S/Inputs/Modified/B.h %t/include >> +// RUN: cp %S/Inputs/Modified/module.map %t/include >> +// RUN: %clang_cc1 -fmodule-cache-path %t/cache -fmodules -I %t/include %s >> -verify >> +// expected-no-diagnostics > > Doug, excuse me to comment older commit. > > Should be? > // {expected-no-diagnostics} > > Or I can see below; > > error: no expected directives found: consider use of 'expected-no-diagnostics' > 1 error generated. > > (But clang exits successfully regardless of braces...) The braces are not supposed to be necessary. I don't think I've seen this file failing... If there really is a problem with expected-no-diagnostics, Andy Gibbs is the one to talk to. _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
