[llvm] r260396 - [pdbdump] Fix test for different type ordering with DIA 2015
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 10 10:17:17 PST 2016
Author: rnk
Date: Wed Feb 10 12:17:17 2016
New Revision: 260396
URL: http://llvm.org/viewvc/llvm-project?rev=260396&view=rev
Log:
[pdbdump] Fix test for different type ordering with DIA 2015
Modified:
llvm/trunk/test/DebugInfo/PDB/DIA/pdbdump-symbol-format.test
Modified: llvm/trunk/test/DebugInfo/PDB/DIA/pdbdump-symbol-format.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/PDB/DIA/pdbdump-symbol-format.test?rev=260396&r1=260395&r2=260396&view=diff
==============================================================================
--- llvm/trunk/test/DebugInfo/PDB/DIA/pdbdump-symbol-format.test (original)
+++ llvm/trunk/test/DebugInfo/PDB/DIA/pdbdump-symbol-format.test Wed Feb 10 12:17:17 2016
@@ -1,4 +1,8 @@
; RUN: llvm-pdbdump -symbols %p/../Inputs/symbolformat.pdb | FileCheck --check-prefix=SYM_FORMAT %s
+; RUN: llvm-pdbdump -types %p/../Inputs/symbolformat.pdb > %t.types
+; RUN: FileCheck --check-prefix=TYPES_FORMAT %s < %t.types
+; RUN: FileCheck --check-prefix=TYPES_1 %s < %t.types
+; RUN: FileCheck --check-prefix=TYPES_2 %s < %t.types
; RUN: llvm-pdbdump -types %p/../Inputs/symbolformat.pdb | FileCheck --check-prefix=TYPES_FORMAT %s
; RUN: llvm-pdbdump -globals %p/../Inputs/symbolformat.pdb | FileCheck --check-prefix=GLOBALS %s
@@ -23,29 +27,32 @@
; TYPES_FORMAT: Typedefs
; TYPES_FORMAT-DAG: typedef int IntType
; TYPES_FORMAT-DAG: typedef class A ClassAType
-; TYPES_FORMAT: Classes
-; TYPES_FORMAT: struct A {
-; TYPES_FORMAT: public:
-; TYPES_FORMAT: virtual void PureFunc() = 0
-; TYPES_FORMAT: virtual void VirtualFunc()
-; TYPES_FORMAT: void RegularFunc()
-; TYPES_FORMAT: }
-; TYPES_FORMAT-DAG: struct MemberTest {
-; TYPES_FORMAT: data +0x00 MemberTest::NestedEnum m_nested_enum
-; TYPES_FORMAT: data +0x04 int m_typedef
-; TYPES_FORMAT: data +0x08 bool m_bool
-; TYPES_FORMAT: data +0x09 char m_char
-; TYPES_FORMAT: data +0x0a wchar_t m_wchar_t
-; TYPES_FORMAT: data +0x0c int m_int
-; TYPES_FORMAT: data +0x10 unsigned m_unsigned
-; TYPES_FORMAT: data +0x14 long m_long
-; TYPES_FORMAT: data +0x18 unsigned long m_unsigned_long
-; TYPES_FORMAT: data +0x20 __int64 m_int64
-; TYPES_FORMAT: data +0x28 unsigned __int64 m_unsigned_int64
-; TYPES_FORMAT: data +0x30 float m_float
-; TYPES_FORMAT: data +0x38 double m_double
-; TYPES_FORMAT: data +0x40 void (__cdecl *m_pfn_2_args)(int, double)
-; TYPES_FORMAT: }
+
+; TYPES_1: Classes
+; TYPES_1: struct A {
+; TYPES_1: public:
+; TYPES_1: virtual void PureFunc() = 0
+; TYPES_1: virtual void VirtualFunc()
+; TYPES_1: void RegularFunc()
+; TYPES_1: }
+
+; TYPES_2: Classes
+; TYPES_2: struct MemberTest {
+; TYPES_2: data +0x00 MemberTest::NestedEnum m_nested_enum
+; TYPES_2: data +0x04 int m_typedef
+; TYPES_2: data +0x08 bool m_bool
+; TYPES_2: data +0x09 char m_char
+; TYPES_2: data +0x0a wchar_t m_wchar_t
+; TYPES_2: data +0x0c int m_int
+; TYPES_2: data +0x10 unsigned m_unsigned
+; TYPES_2: data +0x14 long m_long
+; TYPES_2: data +0x18 unsigned long m_unsigned_long
+; TYPES_2: data +0x20 __int64 m_int64
+; TYPES_2: data +0x28 unsigned __int64 m_unsigned_int64
+; TYPES_2: data +0x30 float m_float
+; TYPES_2: data +0x38 double m_double
+; TYPES_2: data +0x40 void (__cdecl *m_pfn_2_args)(int, double)
+; TYPES_2: }
; GLOBALS: ---GLOBALS---
; GLOBALS-DAG: func [{{.*}}] (FPO) unsigned __cdecl fpo_func(unsigned n)
More information about the llvm-commits
mailing list