summaryrefslogtreecommitdiffstats
path: root/debuginfo-tests/win_cdb/hello.c
blob: 00a15e8dbede6495c86075c99d09d382c34028c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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