r217836 - PR19692: Add (passing) regression test.

Richard Smith richard at metafoo.co.uk
Tue Dec 23 11:18:00 PST 2014


On 22 Dec 2014 10:15, "Nico Weber" <thakis at chromium.org> wrote:
>
> 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.

It's not used, I must have left it behind when converting the test case to
a lit-compatible form.

> On Mon, Sep 15, 2014 at 3:14 PM, Richard Smith <richard-llvm at metafoo.co.uk>
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
>> cfe-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141223/52a02c56/attachment.html>


More information about the cfe-commits mailing list