aboutsummaryrefslogtreecommitdiff
path: root/debuginfo-tests
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2017-04-17 17:57:05 +0000
committerAdrian Prantl <aprantl@apple.com>2017-04-17 17:57:05 +0000
commit18c18deb7711808df26b950341363bb2b091f03e (patch)
treeb65447622ee9450418513cadbdfb63e472fc843e /debuginfo-tests
parent7b2bf89ebeb730a032c34f99b29fa66a9e84959a (diff)
Add additional CHECKs to safestack.c.
llvm-svn: 300469
Diffstat (limited to 'debuginfo-tests')
-rw-r--r--debuginfo-tests/safestack.c30
1 files changed, 20 insertions, 10 deletions
diff --git a/debuginfo-tests/safestack.c b/debuginfo-tests/safestack.c
index c8c7109e6687..a3b36c9838ff 100644
--- a/debuginfo-tests/safestack.c
+++ b/debuginfo-tests/safestack.c
@@ -4,22 +4,32 @@
// Zorg configures the ASAN stage2 bots to not build the
// safestack compiler-rt. Only run this test on
// non-asanified configurations.
-//
-// DEBUGGER: break 19
-// DEBUGGER: r
-// DEBUGGER: p s
-//
-// CHECK: a = ([0] = 0, [1] = 1, [2] = 2, [3] = 3, [4] = 4, [5] = 5, [6] = 6, [7] = 7)
struct S {
int a[8];
};
-int f(struct S s, unsigned i) {
- return s.a[i];
-}
+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}};
- return f(s, 4);
+ // 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 = ([0] = 0, [1] = 1, [2] = 2, [3] = 3, [4] = 4, [5] = 5, [6] = 6, [7] = 7)
+// DEBUGGER: c
+// DEBUGGER: p s
+// CHECK: a = ([0] = 0, [1] = 1, [2] = 2, [3] = 3, [4] = 4, [5] = 5, [6] = 6, [7] = 7)
+// DEBUGGER: c
+// DEBUGGER: p s
+// CHECK: a = ([0] = 0, [1] = 1, [2] = 2, [3] = 3, [4] = 4, [5] = 5, [6] = 6, [7] = 7)