summaryrefslogtreecommitdiffstats
path: root/debuginfo-tests/README.txt
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-09-13 22:25:34 +0000
committerDevang Patel <dpatel@apple.com>2010-09-13 22:25:34 +0000
commitbf3b62d35601bcedba77b316aa3d2eb790ae76dd (patch)
tree551e5ea54d6f400dd8d4e4ba3b91f26cf20da7bb /debuginfo-tests/README.txt
parent5c649bc7bb430c4a9466365e5af3dcf38880140c (diff)
downloadbcm5719-llvm-bf3b62d35601bcedba77b316aa3d2eb790ae76dd.tar.gz
bcm5719-llvm-bf3b62d35601bcedba77b316aa3d2eb790ae76dd.zip
Add README.txt and very first test case.
llvm-svn: 113797
Diffstat (limited to 'debuginfo-tests/README.txt')
-rw-r--r--debuginfo-tests/README.txt19
1 files changed, 19 insertions, 0 deletions
diff --git a/debuginfo-tests/README.txt b/debuginfo-tests/README.txt
new file mode 100644
index 00000000000..56820920b38
--- /dev/null
+++ b/debuginfo-tests/README.txt
@@ -0,0 +1,19 @@
+
+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 exmaple,
+
+define i32 @f1(i32 %i) nounwind ssp {
+; DEBUGGER: break f1
+; DEBUGGER: r
+; DEBUGGER: p i
+; CHECK: $1 = 42
+entry:
+}
+
+is a testcase where the debuger is asked to break at function 'f1' and
+print value of argument 'i'. The expected value of 'i' is 42 in this case.
OpenPOWER on IntegriCloud