Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / test / API / lang / cpp / nested-template / TestNestedTemplate.py
blob42db060529a81876249f539f7628ce4cb705fb2a
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"],
21 @skipIf(compiler=no_match("clang"))
22 @skipIf(compiler_version=["<", "15.0"])
23 def test_simple_template_names(self):
24 self.do_test(dict(TEST_CFLAGS_EXTRAS="-gsimple-template-names"))
26 @skipIf(compiler=no_match("clang"))
27 @skipIf(compiler_version=["<", "15.0"])
28 def test_no_simple_template_names(self):
29 self.do_test(dict(TEST_CFLAGS_EXTRAS="-gno-simple-template-names"))