diff options
author | Hubert Tong <hubert.reinterpretcast@gmail.com> | 2019-06-19 15:48:12 +0000 |
---|---|---|
committer | Hubert Tong <hubert.reinterpretcast@gmail.com> | 2019-06-19 15:48:12 +0000 |
commit | 8d92f596966891894c8117e7dd35eb8873471c96 (patch) | |
tree | 4e722e7802306aeace0fbd47b0859996345f5bd6 /clang/test/CodeGenCXX/debug-info-codeview-display-name.cpp | |
parent | aace6d285d7ce7434e7329a93b31c82ff2aea401 (diff) | |
download | bcm5719-llvm-8d92f596966891894c8117e7dd35eb8873471c96.tar.gz bcm5719-llvm-8d92f596966891894c8117e7dd35eb8873471c96.zip |
[NFC][codeview] Avoid undefined grep in debug-info-codeview-display-name.cpp
vertical-line is not a BRE special character.
POSIX.1-2017 XBD Section 9.3.2 indicates that the interpretation of `\|`
is undefined. This patch uses an ERE instead.
llvm-svn: 363826
Diffstat (limited to 'clang/test/CodeGenCXX/debug-info-codeview-display-name.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/debug-info-codeview-display-name.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CodeGenCXX/debug-info-codeview-display-name.cpp b/clang/test/CodeGenCXX/debug-info-codeview-display-name.cpp index 17049d506fa..ab3344bc991 100644 --- a/clang/test/CodeGenCXX/debug-info-codeview-display-name.cpp +++ b/clang/test/CodeGenCXX/debug-info-codeview-display-name.cpp @@ -1,6 +1,6 @@ // RUN: %clang_cc1 -fblocks -debug-info-kind=limited -gcodeview -emit-llvm %s \ // RUN: -o - -triple=x86_64-pc-win32 -std=c++98 | \ -// RUN: grep 'DISubprogram\|DICompositeType' | sed -e 's/.*name: "\([^"]*\)".*/"\1"/' | \ +// RUN: grep -E 'DISubprogram|DICompositeType' | sed -e 's/.*name: "\([^"]*\)".*/"\1"/' | \ // RUN: FileCheck %s --check-prefix=CHECK --check-prefix=UNQUAL // RUN: %clang_cc1 -fblocks -debug-info-kind=line-tables-only -gcodeview -emit-llvm %s \ // RUN: -o - -triple=x86_64-pc-win32 -std=c++98 | \ |