Is my.cc used for anything? I'm asking because I just renamed a few cc files to cpp in r224718. my.cc is the last .cc file that remains in the test/ directory, but I don't understand how (or if) it's used.
On Mon, Sep 15, 2014 at 3:14 PM, Richard Smith <[email protected]> wrote: > Author: rsmith > Date: Mon Sep 15 17:14:48 2014 > New Revision: 217836 > > URL: http://llvm.org/viewvc/llvm-project?rev=217836&view=rev > Log: > PR19692: Add (passing) regression test. > > Added: > cfe/trunk/test/Modules/Inputs/pr19692/ > cfe/trunk/test/Modules/Inputs/pr19692/AIX.h > cfe/trunk/test/Modules/Inputs/pr19692/Blah.h > cfe/trunk/test/Modules/Inputs/pr19692/TBlah.h > cfe/trunk/test/Modules/Inputs/pr19692/TFoo.h > cfe/trunk/test/Modules/Inputs/pr19692/module.map > cfe/trunk/test/Modules/Inputs/pr19692/my.cc > cfe/trunk/test/Modules/Inputs/pr19692/stdint.h > cfe/trunk/test/Modules/pr19692.cpp > > Added: cfe/trunk/test/Modules/Inputs/pr19692/AIX.h > URL: > http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Modules/Inputs/pr19692/AIX.h?rev=217836&view=auto > > ============================================================================== > --- cfe/trunk/test/Modules/Inputs/pr19692/AIX.h (added) > +++ cfe/trunk/test/Modules/Inputs/pr19692/AIX.h Mon Sep 15 17:14:48 2014 > @@ -0,0 +1,2 @@ > + #undef INT64_MAX > + > > Added: cfe/trunk/test/Modules/Inputs/pr19692/Blah.h > URL: > http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Modules/Inputs/pr19692/Blah.h?rev=217836&view=auto > > ============================================================================== > --- cfe/trunk/test/Modules/Inputs/pr19692/Blah.h (added) > +++ cfe/trunk/test/Modules/Inputs/pr19692/Blah.h Mon Sep 15 17:14:48 2014 > @@ -0,0 +1,2 @@ > + #include "stdint.h" > + > > Added: cfe/trunk/test/Modules/Inputs/pr19692/TBlah.h > URL: > http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Modules/Inputs/pr19692/TBlah.h?rev=217836&view=auto > > ============================================================================== > --- cfe/trunk/test/Modules/Inputs/pr19692/TBlah.h (added) > +++ cfe/trunk/test/Modules/Inputs/pr19692/TBlah.h Mon Sep 15 17:14:48 2014 > @@ -0,0 +1,3 @@ > +#include "Blah.h" > + int use = INT64_MAX; > + > > Added: cfe/trunk/test/Modules/Inputs/pr19692/TFoo.h > URL: > http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Modules/Inputs/pr19692/TFoo.h?rev=217836&view=auto > > ============================================================================== > --- cfe/trunk/test/Modules/Inputs/pr19692/TFoo.h (added) > +++ cfe/trunk/test/Modules/Inputs/pr19692/TFoo.h Mon Sep 15 17:14:48 2014 > @@ -0,0 +1 @@ > + > > Added: cfe/trunk/test/Modules/Inputs/pr19692/module.map > URL: > http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Modules/Inputs/pr19692/module.map?rev=217836&view=auto > > ============================================================================== > --- cfe/trunk/test/Modules/Inputs/pr19692/module.map (added) > +++ cfe/trunk/test/Modules/Inputs/pr19692/module.map Mon Sep 15 17:14:48 > 2014 > @@ -0,0 +1,3 @@ > +module cstd { module stdint { header "stdint.h" } } > +module LLVMSupport { module Blah { header "Blah.h" export * } module AIX > { header "AIX.h" } } > +module LLVMTarget { module Blah { header "TBlah.h" export * } module Foo > { header "TFoo.h" } } > > Added: cfe/trunk/test/Modules/Inputs/pr19692/my.cc > URL: > http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Modules/Inputs/pr19692/my.cc?rev=217836&view=auto > > ============================================================================== > --- cfe/trunk/test/Modules/Inputs/pr19692/my.cc (added) > +++ cfe/trunk/test/Modules/Inputs/pr19692/my.cc Mon Sep 15 17:14:48 2014 > @@ -0,0 +1,5 @@ > +#include "TFoo.h" > +#include "stdint.h" > + > + int k = INT64_MAX; // error! > + > > Added: cfe/trunk/test/Modules/Inputs/pr19692/stdint.h > URL: > http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Modules/Inputs/pr19692/stdint.h?rev=217836&view=auto > > ============================================================================== > --- cfe/trunk/test/Modules/Inputs/pr19692/stdint.h (added) > +++ cfe/trunk/test/Modules/Inputs/pr19692/stdint.h Mon Sep 15 17:14:48 2014 > @@ -0,0 +1,2 @@ > + #define INT64_MAX 42 > + > > Added: cfe/trunk/test/Modules/pr19692.cpp > URL: > http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Modules/pr19692.cpp?rev=217836&view=auto > > ============================================================================== > --- cfe/trunk/test/Modules/pr19692.cpp (added) > +++ cfe/trunk/test/Modules/pr19692.cpp Mon Sep 15 17:14:48 2014 > @@ -0,0 +1,7 @@ > +// RUN: rm -rf %t > +// RUN: %clang_cc1 -I%S/Inputs/pr19692 -verify %s > +// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -I%S/Inputs/pr19692 > -verify %s > +#include "TFoo.h" > +#include "stdint.h" > + > +int k = INT64_MAX; // expected-no-diagnostics > > > _______________________________________________ > cfe-commits mailing list > [email protected] > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits >
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
