[clang] 757bc55 - Tighten up CHECK lines added in a9f10ebffa to work on ARM.

Douglas Yung via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 5 18:37:42 PST 2019


Author: Douglas Yung
Date: 2019-12-05T18:35:08-08:00
New Revision: 757bc55f8314c8c789f81b7f0b3397a8c6148b68

URL: https://github.com/llvm/llvm-project/commit/757bc55f8314c8c789f81b7f0b3397a8c6148b68
DIFF: https://github.com/llvm/llvm-project/commit/757bc55f8314c8c789f81b7f0b3397a8c6148b68.diff

LOG: Tighten up CHECK lines added in a9f10ebffa to work on ARM.

On ARM platforms, the compiler generates an additional line containing `-CXXRecordDecl which is not the intended line, but preceeds the intended match causing the test to fail.

Added: 
    

Modified: 
    clang/test/Import/struct-and-var/test.cpp

Removed: 
    


################################################################################
diff  --git a/clang/test/Import/struct-and-var/test.cpp b/clang/test/Import/struct-and-var/test.cpp
index 8732cb937582..8a499bfa797e 100644
--- a/clang/test/Import/struct-and-var/test.cpp
+++ b/clang/test/Import/struct-and-var/test.cpp
@@ -1,6 +1,6 @@
 // RUN: clang-import-test -dump-ast --import %S/Inputs/S1.cpp --import %S/Inputs/S2.cpp -expression %s | FileCheck %s
 
-// CHECK: `-CXXRecordDecl
+// CHECK: {{^`-CXXRecordDecl}}
 // CHECK-SAME: Inputs/S2.cpp:1:1, line:3:1> line:1:8 struct F
 
 void expr() {


        


More information about the cfe-commits mailing list