[clang] Add tracking source deduction guide for the explicitly-written
[llvm-project.git] / lldb / test / API / lang / cpp / nested-template / TestNestedTemplate.py
blob055a8e6e210426b7be9e0e8c73b6b1077a3b87c2
1 """
2 Test that a nested template parameter works with simple template names.
3 """
5 import lldb
6 import lldbsuite.test.lldbutil as lldbutil
7 from lldbsuite.test.decorators import *
8 from lldbsuite.test.lldbtest import *
11 class NestedTemplateTestCase(TestBase):
12 def do_test(self, debug_flags):
13 self.build(dictionary=debug_flags)
14 self.dbg.CreateTarget(self.getBuildArtifact("a.out"))
15 self.expect(
16 "image lookup -A -t 'Inner<int>'",
17 DATA_TYPES_DISPLAYED_CORRECTLY,
18 substrs=["1 match found"],
20 self.expect(
21 "image lookup -A -t 'NS::Struct<int>'",
22 DATA_TYPES_DISPLAYED_CORRECTLY,
23 substrs=["1 match found"],
25 self.expect(
26 "image lookup -A -t 'NS::Union<int>'",
27 DATA_TYPES_DISPLAYED_CORRECTLY,
28 substrs=["1 match found"],
31 @skipIf(compiler=no_match("clang"))
32 @skipIf(compiler_version=["<", "15.0"])
33 def test_simple_template_names(self):
34 self.do_test(dict(TEST_CFLAGS_EXTRAS="-gsimple-template-names"))
36 @skipIf(compiler=no_match("clang"))
37 @skipIf(compiler_version=["<", "15.0"])
38 def test_no_simple_template_names(self):
39 self.do_test(dict(TEST_CFLAGS_EXTRAS="-gno-simple-template-names"))