summaryrefslogtreecommitdiffstats
path: root/debuginfo-tests/win_cdb/hello.c
diff options
context:
space:
mode:
Diffstat (limited to 'debuginfo-tests/win_cdb/hello.c')
-rw-r--r--debuginfo-tests/win_cdb/hello.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/debuginfo-tests/win_cdb/hello.c b/debuginfo-tests/win_cdb/hello.c
new file mode 100644
index 00000000000..00a15e8dbed
--- /dev/null
+++ b/debuginfo-tests/win_cdb/hello.c
@@ -0,0 +1,14 @@
+// RUN: %clang_cl %s -o %t.exe -fuse-ld=lld -Z7
+// RUN: grep DE[B]UGGER: %s | sed -e 's/.*DE[B]UGGER: //' > %t.script
+// RUN: %cdb -cf %t.script %t.exe | FileCheck %s --check-prefixes=DEBUGGER,CHECK
+
+#include <stdio.h>
+int main() {
+ printf("hello world\n");
+ int x = 42;
+ __debugbreak();
+ // DEBUGGER: g
+ // DEBUGGER: dv
+ // CHECK: x = 0n42
+}
+// DEBUGGER: q
OpenPOWER on IntegriCloud