From: Andrew Gozillon Date: Mon, 2 Oct 2017 13:32:59 +0000 (+0000) Subject: Dependent Address Space Support Test Fix X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d0d495fe2b49db42e8d326d53ad041003219bb25;p=clang 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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@314668 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/SemaTemplate/address_space-dependent.cpp b/test/SemaTemplate/address_space-dependent.cpp index a47f2b2f90..e3243bc3eb 100644 --- a/test/SemaTemplate/address_space-dependent.cpp +++ b/test/SemaTemplate/address_space-dependent.cpp @@ -42,7 +42,7 @@ void neg() { } template -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;