[NFC][codeview] Avoid undefined grep in debug-info-codeview-display-name.cpp
authorHubert Tong <hubert.reinterpretcast@gmail.com>
Wed, 19 Jun 2019 15:48:12 +0000 (15:48 +0000)
committerHubert Tong <hubert.reinterpretcast@gmail.com>
Wed, 19 Jun 2019 15:48:12 +0000 (15:48 +0000)
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

clang/test/CodeGenCXX/debug-info-codeview-display-name.cpp

index 17049d506fa600ff74168c19b19b201cd9a2d894..ab3344bc991c5529d0aaa3547b011410a21dac50 100644 (file)
@@ -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 | \