[PATCH] D99258: [OpenCL] Fix AST check in address-space-templates test
Anastasia Stulova via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 26 07:24:58 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG6e46f0b62830: [OpenCL] Fix AST check in address-space-templates test (authored by Anastasia).
Herald added a subscriber: ldrumm.
Herald added a project: clang.
Changed prior to commit:
https://reviews.llvm.org/D99258?vs=332954&id=333551#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D99258/new/
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){;});
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99258.333551.patch
Type: text/x-patch
Size: 1032 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210326/723cea62/attachment.bin>
More information about the cfe-commits
mailing list