[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / cross-project-tests / debuginfo-tests / dexter-tests / dbg-arg.c
blobff000f584db0352f50272504b1de831e2f70e7c9
1 // REQUIRES: lldb
2 // UNSUPPORTED: system-windows
3 //
4 // This test case checks debug info during register moves for an argument.
5 // RUN: %clang -std=gnu11 -m64 -mllvm -fast-isel=false -g %s -o %t
6 // RUN: %dexter --fail-lt 1.0 -w \
7 // RUN: --binary %t --debugger 'lldb' -- %s
8 //
9 // Radar 8412415
11 struct _mtx
13 long unsigned int ptr;
14 int waiters;
15 struct {
16 int tag;
17 int pad;
18 } mtxi;
21 int bar(int, int);
23 int foobar(struct _mtx *mutex) {
24 int r = 1;
25 int l = 0; // DexLabel('l_assign')
26 int j = 0;
27 do {
28 if (mutex->waiters) {
29 r = 2;
31 j = bar(r, l);
32 ++l;
33 } while (l < j);
34 return r + j;
37 int bar(int i, int j) {
38 return i + j;
41 int main() {
42 struct _mtx m;
43 m.waiters = 0;
44 return foobar(&m);
49 DexExpectProgramState({
50 'frames': [
52 'location': { 'lineno': ref('l_assign') },
53 'watches': {
54 '*mutex': { 'is_irretrievable': False }