llvm-project/debuginfo-tests
Zachary Turner 5e420717a1 Resubmit "Refactor debuginfo-tests"
This was reverted due to some failures on specific darwin buildbots,
the issue being that the new lit configuration was not setting the
SDKROOT environment variable.  We've tested a fix locally and confirmed
that it works, so this patch resubmits everything with the fix
applied.

llvm-svn: 318435
2017-11-16 18:26:20 +00:00
..
tests Resubmit "Refactor debuginfo-tests" 2017-11-16 18:26:20 +00:00
CMakeLists.txt Resubmit "Refactor debuginfo-tests" 2017-11-16 18:26:20 +00:00
README.txt fix typos 2013-09-06 18:10:42 +00:00
lit.cfg.py Resubmit "Refactor debuginfo-tests" 2017-11-16 18:26:20 +00:00
lit.site.cfg.py.in Resubmit "Refactor debuginfo-tests" 2017-11-16 18:26:20 +00:00

README.txt

                                                                   -*- rst -*-
This is a collection of tests to check debugging information generated by 
compiler. This test suite can be checked out inside clang/test folder. This 
will enable 'make test' for clang to pick up these tests. Typically, test 
cases included here includes debugger commands and intended debugger output 
as comments in source file using DEBUGGER: and CHECK: as prefixes respectively.

For example::

  define i32 @f1(i32 %i) nounwind ssp {
  ; DEBUGGER: break f1
  ; DEBUGGER: r
  ; DEBUGGER: p i 
  ; CHECK: $1 = 42 
  entry:
  }

is a testcase where the debugger is asked to break at function 'f1' and 
print value of argument 'i'. The expected value of 'i' is 42 in this case.