summaryrefslogtreecommitdiff
path: root/lldb/test/Shell/Commands/command-image-dump-ast-colored.test
blob: 7fd70d234fbd45ae856566c06619ed97f7ae3170 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Test AST dumping with and without color.

# RUN: split-file %s %t
# RUN: %clangxx_host -g -gdwarf %t/main.cpp -o %t.out
# RUN: %lldb -x -b -s %t/commands.input %t.out -o exit 2>&1 \
# RUN:       | FileCheck %s

#--- main.cpp

int main() {}

#--- commands.input

settings set use-color true

target modules dump ast

# CHECK:      target modules dump ast
# CHECK:      TranslationUnitDecl
# CHECK-SAME: 

target dump typesystem

# CHECK:      target dump typesystem
# CHECK:      TranslationUnitDecl
# CHECK-SAME: 

settings set use-color false

target modules dump ast
target dump typesystem

# CHECK:     settings set use-color false
# CHECK-NOT: