summaryrefslogtreecommitdiff
path: root/debuginfo-tests/safestack.c
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-11-20 21:41:36 +0000
committerZachary Turner <zturner@google.com>2017-11-20 21:41:36 +0000
commit4a6226443193445f7dc46c4c598c195a9664815c (patch)
treef61820a1d83a3b22fc78cc848b02296d7cb0b6b9 /debuginfo-tests/safestack.c
parentcf10ca9c86cfe722a082d3c5034171ec4fe0de81 (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/safestack.c')
-rw-r--r--debuginfo-tests/safestack.c51
1 files changed, 0 insertions, 51 deletions
diff --git a/debuginfo-tests/safestack.c b/debuginfo-tests/safestack.c
deleted file mode 100644
index 01c5f7ede92..00000000000
--- a/debuginfo-tests/safestack.c
+++ /dev/null
@@ -1,51 +0,0 @@
-// RUN: %clang %target_itanium_abi_host_triple -arch x86_64 %s -o %t.out -g -fsanitize=safe-stack
-// RUN: %test_debuginfo %s %t.out
-// REQUIRES: not_asan
-// Zorg configures the ASAN stage2 bots to not build the
-// safestack compiler-rt. Only run this test on
-// non-asanified configurations.
-
-struct S {
- int a[8];
-};
-
-int f(struct S s, unsigned i);
-
-int main(int argc, const char **argv) {
- struct S s = {{0, 1, 2, 3, 4, 5, 6, 7}};
- // DEBUGGER: break 17
- f(s, 4);
- // DEBUGGER: break 19
- return 0;
-}
-
-int f(struct S s, unsigned i) {
- // DEBUGGER: break 24
- return s.a[i];
-}
-
-// DEBUGGER: r
-// DEBUGGER: p s
-// CHECK: a =
-// DEBUGGER: p s.a[0]
-// CHECK: = 0
-// DEBUGGER: p s.a[1]
-// CHECK: = 1
-// DEBUGGER: p s.a[7]
-// CHECK: = 7
-// DEBUGGER: c
-// DEBUGGER: p s
-// CHECK: a =
-// DEBUGGER: p s.a[0]
-// CHECK: = 0
-// DEBUGGER: p s.a[1]
-// CHECK: = 1
-// DEBUGGER: p s.a[7]
-// DEBUGGER: c
-// DEBUGGER: p s
-// CHECK: a =
-// DEBUGGER: p s.a[0]
-// CHECK: = 0
-// DEBUGGER: p s.a[1]
-// CHECK: = 1
-// DEBUGGER: p s.a[7]