diff options
author | Zachary Turner <zturner@google.com> | 2017-11-20 21:41:36 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2017-11-20 21:41:36 +0000 |
commit | 4a6226443193445f7dc46c4c598c195a9664815c (patch) | |
tree | f61820a1d83a3b22fc78cc848b02296d7cb0b6b9 /debuginfo-tests/dbg-arg.c | |
parent | cf10ca9c86cfe722a082d3c5034171ec4fe0de81 (diff) |
Resubmit "Refactor debuginfo-tests" again.
This was reverted due to the tests being run twice on some
build bots. Each run had a slightly different configuration
due to the way in which it was being invoked. This fixes
the problem (albeit in a somewhat hacky way). Hopefully in
the future we can get rid of the workflow of running
debuginfo-tests as part of clang, and then this hack can
go away.
Diffstat (limited to 'debuginfo-tests/dbg-arg.c')
-rw-r--r-- | debuginfo-tests/dbg-arg.c | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/debuginfo-tests/dbg-arg.c b/debuginfo-tests/dbg-arg.c deleted file mode 100644 index a65dc910b8b..00000000000 --- a/debuginfo-tests/dbg-arg.c +++ /dev/null @@ -1,46 +0,0 @@ -// This test case checks debug info during register moves for an argument. -// RUN: %clang %target_itanium_abi_host_triple -m64 -mllvm -fast-isel=false %s -c -o %t.o -g -// RUN: %clang %target_itanium_abi_host_triple -m64 %t.o -o %t.out -// RUN: %test_debuginfo %s %t.out -// -// DEBUGGER: break 26 -// DEBUGGER: r -// DEBUGGER: print mutex -// CHECK: ={{.* 0x[0-9A-Fa-f]+}} -// -// Radar 8412415 - -struct _mtx -{ - long unsigned int ptr; - int waiters; - struct { - int tag; - int pad; - } mtxi; -}; - - -int foobar(struct _mtx *mutex) { - int r = 1; - int l = 0; - int j = 0; - do { - if (mutex->waiters) { - r = 2; - } - j = bar(r, l); - ++l; - } while (l < j); - return r + j; -} - -int bar(int i, int j) { - return i + j; -} - -int main() { - struct _mtx m; - m.waiters = 0; - return foobar(&m); -} |