CPP: Merge the two unions tests.

This commit is contained in:
Geoffrey White
2019-08-06 16:05:10 +01:00
parent 4ed559ee0b
commit 3550fc7137
4 changed files with 9 additions and 14 deletions

View File

@@ -1,6 +1,6 @@
| unions.cpp:4:8:4:12 | Entry | Struct |
| unions.cpp:13:7:13:11 | Value | Struct, Union |
| unions.cpp:19:8:19:22 | EntryWithMethod | Struct |
| unions.cpp:27:9:27:20 | MyLocalUnion | LocalUnion, Struct, Union |
| unions.cpp:33:7:33:13 | MyClass | |
| unions.cpp:36:9:36:21 | MyNestedUnion | NestedUnion, Struct, Union |
| unions.cpp:4:8:4:12 | Entry | Struct | | operator= |
| unions.cpp:13:7:13:11 | Value | Struct, Union | | operator= |
| unions.cpp:19:8:19:22 | EntryWithMethod | Struct | Entry | getAsInt, operator= |
| unions.cpp:27:9:27:20 | MyLocalUnion | LocalUnion, Struct, Union | | operator= |
| unions.cpp:33:7:33:13 | MyClass | | | operator= |
| unions.cpp:36:9:36:21 | MyNestedUnion | NestedUnion, Struct, Union | | operator= |

View File

@@ -20,4 +20,6 @@ string describe(Class c)
from Class c
select
c,
concat(describe(c), ", ")
concat(describe(c), ", "),
concat(c.getABaseClass().toString(), ", "),
concat(c.getAMemberFunction().toString(), ", ")

View File

@@ -1,3 +0,0 @@
| unions.cpp:19:8:19:22 | EntryWithMethod | unions.cpp:4:8:4:12 | Entry | unions.cpp:19:8:19:8 | operator= |
| unions.cpp:19:8:19:22 | EntryWithMethod | unions.cpp:4:8:4:12 | Entry | unions.cpp:19:8:19:8 | operator= |
| unions.cpp:19:8:19:22 | EntryWithMethod | unions.cpp:4:8:4:12 | Entry | unions.cpp:20:7:20:14 | getAsInt |

View File

@@ -1,4 +0,0 @@
import cpp
from Struct s
select s, s.getABaseClass(), s.getAMemberFunction()