Anastasia created this revision.
Anastasia added a reviewer: bader.
Herald added subscribers: ebevhan, yaxunl.
Anastasia requested review of this revision.
See comment: https://reviews.llvm.org/D95624#2621226
https://reviews.llvm.org/D99258
Files:
clang/test/SemaOpenCLCXX/address-space-templates.clcpp
Index: clang/test/SemaOpenCLCXX/address-space-templates.clcpp
===================================================================
--- clang/test/SemaOpenCLCXX/address-space-templates.clcpp
+++ clang/test/SemaOpenCLCXX/address-space-templates.clcpp
@@ -31,7 +31,7 @@
// Check address space deduction in template parameter deduction.
struct rep {
// When there is no address space on a reference use __generic.
- // CHECK: |-CXXConstructorDecl {{.*}} rep 'void (const __generic rep
&__private) __generic'
+ // CHECK: |-CXXConstructorDecl {{.*}} rep 'void (const __generic rep
&__private){{.*}} __generic'
template<class U, class = typename as_pointer<U>::type>
rep(U&& v) {}
};
@@ -57,6 +57,6 @@
rep_outer r;
int i;
// Preserve the address space of the type in forwarding reference.
- // CHECK: CXXMethodDecl {{.*}} operator() 'void (__private int &__private)
const __generic'
+ // CHECK: CXXMethodDecl {{.*}} operator() 'void (__private int
&__private){{.*}} const __generic'
foo4(i, [](auto&& x){;});
}
Index: clang/test/SemaOpenCLCXX/address-space-templates.clcpp
===================================================================
--- clang/test/SemaOpenCLCXX/address-space-templates.clcpp
+++ clang/test/SemaOpenCLCXX/address-space-templates.clcpp
@@ -31,7 +31,7 @@
// Check address space deduction in template parameter deduction.
struct rep {
// When there is no address space on a reference use __generic.
- // CHECK: |-CXXConstructorDecl {{.*}} rep 'void (const __generic rep &__private) __generic'
+ // CHECK: |-CXXConstructorDecl {{.*}} rep 'void (const __generic rep &__private){{.*}} __generic'
template<class U, class = typename as_pointer<U>::type>
rep(U&& v) {}
};
@@ -57,6 +57,6 @@
rep_outer r;
int i;
// Preserve the address space of the type in forwarding reference.
- // CHECK: CXXMethodDecl {{.*}} operator() 'void (__private int &__private) const __generic'
+ // CHECK: CXXMethodDecl {{.*}} operator() 'void (__private int &__private){{.*}} const __generic'
foo4(i, [](auto&& x){;});
}
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits