From: Reid Kleckner Date: Tue, 16 Jul 2019 23:44:33 +0000 (+0000) Subject: Fix OpenCLCXX test on 32-bit Windows where thiscall is present X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9999ed4f4df6817ed2890d7d69b90aa17390412a;p=clang Fix OpenCLCXX test on 32-bit Windows where thiscall is present git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@366284 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/SemaOpenCLCXX/address-space-deduction.cl b/test/SemaOpenCLCXX/address-space-deduction.cl index f66d224e25..08668951db 100644 --- a/test/SemaOpenCLCXX/address-space-deduction.cl +++ b/test/SemaOpenCLCXX/address-space-deduction.cl @@ -30,8 +30,8 @@ struct c2 { template struct x1 { -//CHECK: -CXXMethodDecl {{.*}} operator= 'x1 &(const x1 &) __generic' -//CHECK: -CXXMethodDecl {{.*}} operator= '__generic x1 &(const __generic x1 &) __generic' +//CHECK: -CXXMethodDecl {{.*}} operator= 'x1 &(const x1 &){{( __attribute__.*)?}} __generic' +//CHECK: -CXXMethodDecl {{.*}} operator= '__generic x1 &(const __generic x1 &){{( __attribute__.*)?}} __generic' x1& operator=(const x1& xx) { y = xx.y; return *this; @@ -41,8 +41,8 @@ struct x1 { template struct x2 { -//CHECK: -CXXMethodDecl {{.*}} foo 'void (x1 *) __generic' -//CHECK: -CXXMethodDecl {{.*}} foo 'void (__generic x1 *) __generic' +//CHECK: -CXXMethodDecl {{.*}} foo 'void (x1 *){{( __attribute__.*)?}} __generic' +//CHECK: -CXXMethodDecl {{.*}} foo 'void (__generic x1 *){{( __attribute__.*)?}} __generic' void foo(x1* xx) { m[0] = *xx; } @@ -57,9 +57,9 @@ void bar(__global x1 *xx, __global x2 *bar) { template class x3 : public T { public: - //CHECK: -CXXConstructorDecl {{.*}} x3 'void (const x3 &) __generic' + //CHECK: -CXXConstructorDecl {{.*}} x3 'void (const x3 &){{( __attribute__.*)?}} __generic' x3(const x3 &t); }; -//CHECK: -CXXConstructorDecl {{.*}} x3 'void (const x3 &) __generic' +//CHECK: -CXXConstructorDecl {{.*}} x3 'void (const x3 &){{( __attribute__.*)?}} __generic' template x3::x3(const x3 &t) {}