Skip to content

Commit 1241bec

Browse files
committed
test unions
1 parent 1aff68c commit 1241bec

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

lldb/test/API/lang/cpp/nested-template/TestNestedTemplate.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ def do_test(self, debug_flags):
2222
DATA_TYPES_DISPLAYED_CORRECTLY,
2323
substrs=["1 match found"],
2424
)
25+
self.expect(
26+
"image lookup -A -t 'NS::Union<int>'",
27+
DATA_TYPES_DISPLAYED_CORRECTLY,
28+
substrs=["1 match found"],
29+
)
2530

2631
@skipIf(compiler=no_match("clang"))
2732
@skipIf(compiler_version=["<", "15.0"])

lldb/test/API/lang/cpp/nested-template/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ struct Outer {
88
namespace NS {
99
namespace {
1010
template <typename T> struct Struct {};
11+
template <typename T> struct Union {};
1112
} // namespace
1213
} // namespace NS
1314

1415
int main() {
1516
Outer::Inner<int> oi;
1617
NS::Struct<int> ns_struct;
18+
NS::Union<int> ns_union;
1719
}

0 commit comments

Comments
 (0)