r314668 - Dependent Address Space Support Test Fix

Andrew Gozillon via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 2 06:32:59 PDT 2017


Author: agozillon
Date: Mon Oct  2 06:32:59 2017
New Revision: 314668

URL: http://llvm.org/viewvc/llvm-project?rev=314668&view=rev
Log:
Dependent Address Space Support Test Fix

Modifying a non-type template integer arguement that is causing errors 
in some builds as it's too large for 32-bit longs. This hopefully (and 
seems to when testing) should fix all of the build bot errors relating 
to this test. I also modified the name of the function call to be more 
apt.

Differential Revision: https://reviews.llvm.org/D33666


Modified:
    cfe/trunk/test/SemaTemplate/address_space-dependent.cpp

Modified: cfe/trunk/test/SemaTemplate/address_space-dependent.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaTemplate/address_space-dependent.cpp?rev=314668&r1=314667&r2=314668&view=diff
==============================================================================
--- cfe/trunk/test/SemaTemplate/address_space-dependent.cpp (original)
+++ cfe/trunk/test/SemaTemplate/address_space-dependent.cpp Mon Oct  2 06:32:59 2017
@@ -42,7 +42,7 @@ void neg() {
 }
 
 template <long int I>
-void toBig() {
+void tooBig() {
   __attribute__((address_space(I))) int *bounds; // expected-error {{address space is larger than the maximum supported (8388599)}}
 }
 
@@ -102,7 +102,7 @@ int main() {
   HasASTemplateFields<1> HASTF;
   neg<-1>(); // expected-note {{in instantiation of function template specialization 'neg<-1>' requested here}}
   correct<0x7FFFF7>();
-  toBig<4294967500>(); // expected-note {{in instantiation of function template specialization 'toBig<4294967500>' requested here}}
+  tooBig<8388650>(); // expected-note {{in instantiation of function template specialization 'tooBig<8388650>' requested here}}
 
   __attribute__((address_space(1))) char *x;
   __attribute__((address_space(2))) char *y;




More information about the cfe-commits mailing list