From 45c677d8c62b731df617181e5019316d0b2e1820 Mon Sep 17 00:00:00 2001 From: Serge Pavlov Date: Wed, 30 Aug 2023 12:32:35 +0700 Subject: [PATCH] [clang][test] Make check pattern shorter A check pattern in clang/test/SemaCXX/template-64605.cpp contains template specialization kind (the text "implicit_instantiation"). It does not need to be checked and can be safely removed. Presence of this text in the check pattern prevents from backporting some commits to the release branch: https://github.com/llvm/llvm-project/issues/64605. It has only recently been printed and the relevant commit is not present in the release/17.x branch. (cherry picked from commit 8859c644ede4898f90f77dcad2286de08a9ba62e) --- clang/test/SemaCXX/template-64605.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/test/SemaCXX/template-64605.cpp b/clang/test/SemaCXX/template-64605.cpp index 99ccbfdc27f1c8..9d7f8d41001711 100644 --- a/clang/test/SemaCXX/template-64605.cpp +++ b/clang/test/SemaCXX/template-64605.cpp @@ -16,7 +16,7 @@ int f() { return b_64605(); } // CHECK: ImplicitCastExpr {{.*}} 'float' RoundingMath=1 AllowFEnvAccess=1 // CHECK-NEXT: IntegerLiteral {{.*}} 4294967295 -// CHECK: FunctionDecl {{.*}} b_64605 'int ()' implicit_instantiation +// CHECK: FunctionDecl {{.*}} b_64605 'int ()' // CHECK-NEXT: TemplateArgument type 'void' // CHECK: ImplicitCastExpr {{.*}} 'float' RoundingMath=1 AllowFEnvAccess=1