[clang] 6e46f0b - [OpenCL] Fix AST check in address-space-templates test
Anastasia Stulova via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 26 07:24:42 PDT 2021
Author: Anastasia Stulova
Date: 2021-03-26T14:24:30Z
New Revision: 6e46f0b628308ba39feb13872cb21166b857dfdb
URL: https://github.com/llvm/llvm-project/commit/6e46f0b628308ba39feb13872cb21166b857dfdb
DIFF: https://github.com/llvm/llvm-project/commit/6e46f0b628308ba39feb13872cb21166b857dfdb.diff
LOG: [OpenCL] Fix AST check in address-space-templates test
Differential Revision: https://reviews.llvm.org/D99258
Added:
Modified:
clang/test/SemaOpenCLCXX/address-space-templates.clcpp
Removed:
################################################################################
diff --git a/clang/test/SemaOpenCLCXX/address-space-templates.clcpp b/clang/test/SemaOpenCLCXX/address-space-templates.clcpp
index 105a0ddeb35f..0ea1a2a1e4df 100644
--- a/clang/test/SemaOpenCLCXX/address-space-templates.clcpp
+++ b/clang/test/SemaOpenCLCXX/address-space-templates.clcpp
@@ -31,7 +31,7 @@ template <class _Tp> struct as_pointer {
// 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 @@ void bar() {
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){;});
}
More information about the cfe-commits
mailing list