[clang] b2cbdf6 - Update ast-dump-decl.mm test to work on 32 bit windows

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 3 07:42:55 PDT 2021


Author: Erich Keane
Date: 2021-11-03T07:42:06-07:00
New Revision: b2cbdf6c134a0aaa30f877b1e6fe42b9e16391e7

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

LOG: Update ast-dump-decl.mm test to work on 32 bit windows

Windows member functions have __attribute__((thiscall)) on their type,
so any machine running this that is 32 bit windows fails this test, add
a wildcard, plus an additional run line to explain why.

Added: 
    

Modified: 
    clang/test/AST/ast-dump-decl.mm

Removed: 
    


################################################################################
diff  --git a/clang/test/AST/ast-dump-decl.mm b/clang/test/AST/ast-dump-decl.mm
index 16ca27e3b139c..69ff46101da1e 100644
--- a/clang/test/AST/ast-dump-decl.mm
+++ b/clang/test/AST/ast-dump-decl.mm
@@ -1,6 +1,8 @@
 // Test without serialization:
 // RUN: %clang_cc1 -Wno-unused -fblocks -ast-dump -ast-dump-filter Test %s \
 // RUN: | FileCheck --strict-whitespace %s
+// RUN: %clang_cc1 -Wno-unused -fblocks -ast-dump -triple i386-windows-pc -ast-dump-filter Test %s \
+// RUN: | FileCheck --strict-whitespace %s
 //
 // Test with serialization:
 // RUN: %clang_cc1 -Wno-unused -fblocks -emit-pch -o %t %s
@@ -55,7 +57,7 @@ void f() {
     // CHECK-NEXT:               CXXThisExpr {{.*}} <col:8> 'Test *' this
   }
   void yada();
-  // CHECK:      CXXMethodDecl {{.*}} <line:[[@LINE-1]]:3, col:13> col:8 used yada 'void ()'
+  // CHECK:      CXXMethodDecl {{.*}} <line:[[@LINE-1]]:3, col:13> col:8 used yada 'void (){{.*}}'
 };
 
 @protocol P


        


More information about the cfe-commits mailing list