[clang][test] Make check pattern shorter
authorSerge Pavlov <sepavloff@gmail.com>
Wed, 30 Aug 2023 05:32:35 +0000 (12:32 +0700)
committerTobias Hieta <tobias@hieta.se>
Wed, 30 Aug 2023 15:10:36 +0000 (17:10 +0200)
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

index 99ccbfdc27f1c8ab910a9e26909ffa8a7299f8ae..9d7f8d410017110f3e012016079ae49c202ef9b5 100644 (file)
@@ -16,7 +16,7 @@ int f() { return b_64605<void>(); }
 // CHECK:      ImplicitCastExpr {{.*}} 'float' <IntegralToFloating> 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' <IntegralToFloating> RoundingMath=1 AllowFEnvAccess=1