[Test] Fix undef var in catch-undef-behavior.c
authorThomas Preud'homme <thomasp@graphcore.ai>
Tue, 15 Dec 2020 23:05:45 +0000 (23:05 +0000)
committerThomas Preud'homme <thomasp@graphcore.ai>
Wed, 16 Dec 2020 22:39:41 +0000 (22:39 +0000)
commit150fe05db4417c3ed9e4470b7bbd1a6aee7fe505
treea4460b2ab40d771dcb4bd3def4fa7a5af9134e59
parent9ca67d7f4467a5dab4287e7c431f9daf313ca38a
[Test] Fix undef var in catch-undef-behavior.c

Commit 9e52c43090f8cd980167bbd2719878ae36bcf6b5 removed the directive
defining LINE_1600 but left a string substitution to that variable in a
CHECK-NOT directive. This will make that CHECK-NOT directive always fail
to match, no matter the string.

This commit follows the pattern done in
9e52c43090f8cd980167bbd2719878ae36bcf6b5 of simplifying the CHECK-NOT to
only look for the function name and the opening parenthesis, thereby not
requiring the LINE_1600 variable.

Reviewed By: rnk

Differential Revision: https://reviews.llvm.org/D93350
clang/test/CodeGen/catch-undef-behavior.c