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 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::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){;}); }