Skip to content

Commit 75acec8

Browse files
committed
[lldb] Fix enums-layout test on Windows
The test was broken by: https://reviews.llvm.org/D125604
1 parent 84b9985 commit 75acec8

File tree

1 file changed

+31
-31
lines changed

1 file changed

+31
-31
lines changed
Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
11
REQUIRES: system-windows, msvc
22
RUN: %build --compiler=msvc --arch=32 --nodefaultlib --output=%T/SimpleTypesTest.cpp.enums.exe %S/Inputs/SimpleTypesTest.cpp
33
RUN: lldb-test symbols %T/SimpleTypesTest.cpp.enums.exe | FileCheck --check-prefix=ENUM %s
4-
RUN: lldb-test symbols %T/SimpleTypesTest.cpp.enums.exe | FileCheck --check-prefix=ENUM_CONST %s
5-
RUN: lldb-test symbols %T/SimpleTypesTest.cpp.enums.exe | FileCheck --check-prefix=ENUM_EMPTY %s
6-
RUN: lldb-test symbols %T/SimpleTypesTest.cpp.enums.exe | FileCheck --check-prefix=ENUM_UCHAR %s
7-
RUN: lldb-test symbols %T/SimpleTypesTest.cpp.enums.exe | FileCheck --check-prefix=ENUM_CLASS %s
8-
RUN: lldb-test symbols %T/SimpleTypesTest.cpp.enums.exe | FileCheck --check-prefix=ENUM_STRUCT %s
4+
RUN: lldb-test symbols %T/SimpleTypesTest.cpp.enums.exe | FileCheck --check-prefix=CONST-ENUM %s
5+
RUN: lldb-test symbols %T/SimpleTypesTest.cpp.enums.exe | FileCheck --check-prefix=EMPTY-ENUM %s
6+
RUN: lldb-test symbols %T/SimpleTypesTest.cpp.enums.exe | FileCheck --check-prefix=UCHAR-ENUM %s
7+
RUN: lldb-test symbols %T/SimpleTypesTest.cpp.enums.exe | FileCheck --check-prefix=CLASS-ENUM %s
8+
RUN: lldb-test symbols %T/SimpleTypesTest.cpp.enums.exe | FileCheck --check-prefix=STRUCT-ENUM %s
99

1010
; FIXME: PDB does not have information about scoped enumeration (Enum class) so the
1111
; compiler type used is the same as the one for unscoped enumeration.
1212

1313
ENUM: Type{{.*}} , name = "Enum", size = 4, decl = {{[Ss]}}imple{{[Tt]}}ypes{{[Tt]}}est.cpp:19, compiler_type = {{.*}} enum Enum {
14-
ENUM_NEXT: RED,
15-
ENUM_NEXT: GREEN,
16-
ENUM_NEXT: BLUE
17-
ENUM_NEXT:}
14+
ENUM-NEXT: RED,
15+
ENUM-NEXT: GREEN,
16+
ENUM-NEXT: BLUE
17+
ENUM-NEXT:}
1818

19-
ENUM_CONST: Type{{.*}} , name = "EnumConst", size = 4, decl = {{[Ss]}}imple{{[Tt]}}ypes{{[Tt]}}est.cpp:22, compiler_type = {{.*}} enum EnumConst {
20-
ENUM_CONST-NEXT: LOW,
21-
ENUM_CONST-NEXT: NORMAL,
22-
ENUM_CONST-NEXT: HIGH
23-
ENUM_CONST-NEXT:}
19+
CONST-ENUM: Type{{.*}} , name = "EnumConst", size = 4, decl = {{[Ss]}}imple{{[Tt]}}ypes{{[Tt]}}est.cpp:22, compiler_type = {{.*}} enum EnumConst {
20+
CONST-ENUM-NEXT: LOW,
21+
CONST-ENUM-NEXT: NORMAL,
22+
CONST-ENUM-NEXT: HIGH
23+
CONST-ENUM-NEXT:}
2424

25-
ENUM_EMPTY: Type{{.*}} , name = "EnumEmpty", size = 4, decl = {{[Ss]}}imple{{[Tt]}}ypes{{[Tt]}}est.cpp:25, compiler_type = {{.*}} enum EnumEmpty {
26-
ENUM_EMPTY-NEXT:}
25+
EMPTY-ENUM: Type{{.*}} , name = "EnumEmpty", size = 4, decl = {{[Ss]}}imple{{[Tt]}}ypes{{[Tt]}}est.cpp:25, compiler_type = {{.*}} enum EnumEmpty {
26+
EMPTY-ENUM-NEXT:}
2727

28-
ENUM_UCHAR: Type{{.*}} , name = "EnumUChar", size = 1, decl = {{[Ss]}}imple{{[Tt]}}ypes{{[Tt]}}est.cpp:28, compiler_type = {{.*}} enum EnumUChar {
29-
ENUM_UCHAR-NEXT: ON,
30-
ENUM_UCHAR-NEXT: OFF,
31-
ENUM_UCHAR-NEXT: AUTO
32-
ENUM_UCHAR-NEXT:}
28+
UCHAR-ENUM: Type{{.*}} , name = "EnumUChar", size = 1, decl = {{[Ss]}}imple{{[Tt]}}ypes{{[Tt]}}est.cpp:28, compiler_type = {{.*}} enum EnumUChar {
29+
UCHAR-ENUM-NEXT: ON,
30+
UCHAR-ENUM-NEXT: OFF,
31+
UCHAR-ENUM-NEXT: AUTO
32+
UCHAR-ENUM-NEXT:}
3333

3434
; Note that `enum EnumClass` is tested instead of `enum class EnumClass`
35-
ENUM_CLASS: Type{{.*}} , name = "EnumClass", size = 4, decl = {{[Ss]}}imple{{[Tt]}}ypes{{[Tt]}}est.cpp:32, compiler_type = {{.*}} enum EnumClass {
36-
ENUM_CLASS-NEXT: YES,
37-
ENUM_CLASS-NEXT: NO,
38-
ENUM_CLASS-NEXT: DEFAULT
39-
ENUM_CLASS-NEXT:}
35+
CLASS-ENUM: Type{{.*}} , name = "EnumClass", size = 4, decl = {{[Ss]}}imple{{[Tt]}}ypes{{[Tt]}}est.cpp:32, compiler_type = {{.*}} enum EnumClass {
36+
CLASS-ENUM-NEXT: YES,
37+
CLASS-ENUM-NEXT: NO,
38+
CLASS-ENUM-NEXT: DEFAULT
39+
CLASS-ENUM-NEXT:}
4040

41-
ENUM_STRUCT: Type{{.*}} , name = "EnumStruct", size = 4, decl = {{[Ss]}}imple{{[Tt]}}ypes{{[Tt]}}est.cpp:35, compiler_type = {{.*}} enum EnumStruct {
42-
ENUM_STRUCT-NEXT: red,
43-
ENUM_STRUCT-NEXT: blue,
44-
ENUM_STRUCT-NEXT: black
45-
ENUM_STRUCT-NEXT:}
41+
STRUCT-ENUM: Type{{.*}} , name = "EnumStruct", size = 4, decl = {{[Ss]}}imple{{[Tt]}}ypes{{[Tt]}}est.cpp:35, compiler_type = {{.*}} enum EnumStruct {
42+
STRUCT-ENUM-NEXT: red,
43+
STRUCT-ENUM-NEXT: blue,
44+
STRUCT-ENUM-NEXT: black
45+
STRUCT-ENUM-NEXT:}

0 commit comments

Comments
 (0)