Skip to content

Commit

Permalink
[clang][test] Make check pattern shorter
Browse files Browse the repository at this point in the history
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: llvm#64605.
It has only recently been printed and the relevant commit is not present in
the release/17.x branch.

(cherry picked from commit 8859c64)
  • Loading branch information
spavloff authored and tru committed Aug 30, 2023
1 parent 78447a8 commit 45c677d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/test/SemaCXX/template-64605.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 45c677d

Please sign in to comment.