summaryrefslogtreecommitdiffstats
path: root/debuginfo-tests/dbg-arg.c
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-11-10 20:57:57 +0000
committerZachary Turner <zturner@google.com>2017-11-10 20:57:57 +0000
commit0f2ce11df7288c4cdae0db2f7211ec41446e6c22 (patch)
treedcb05a278762dcb31288cbbca159cbfdf9c6b44b /debuginfo-tests/dbg-arg.c
parentf59d0715b1581d627eab52e03f81dcb6c4f9c008 (diff)
downloadbcm5719-llvm-0f2ce11df7288c4cdae0db2f7211ec41446e6c22.tar.gz
bcm5719-llvm-0f2ce11df7288c4cdae0db2f7211ec41446e6c22.zip
[debuginfo-tests] Make debuginfo-tests work in a standard configuration.
Previously, debuginfo-tests was expected to be checked out into clang/test and then the tests would automatically run as part of check-clang. This is not a standard workflow for handling external projects, and it brings with it some serious drawbacks such as the inability to depend on things other than clang, which we will need going forward. The goal of this patch is to migrate towards a more standard workflow. To ease the transition for build bot maintainers, this patch tries not to break the existing workflow, but instead simply deprecate it to give maintainers a chance to update the build infrastructure. Differential Revision: https://reviews.llvm.org/D39605 llvm-svn: 317925
Diffstat (limited to 'debuginfo-tests/dbg-arg.c')
-rw-r--r--debuginfo-tests/dbg-arg.c46
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);
-}
OpenPOWER on IntegriCloud