summaryrefslogtreecommitdiffstats
path: root/debuginfo-tests/dexter/feature_tests/commands/perfect/expect_step_order.cpp
blob: cadc0387d9b88ff03b6e0eee8b829831b3af388c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Purpose:
//      Check that \DexExpectStepOrder applies no penalty when the expected
//      order is found.
//
// REQUIRES: system-linux, lldb
//
// RUN: %dexter test --fail-lt 1.0 -w \
// RUN:     --builder 'clang' --debugger 'lldb' --cflags "-O0 -g" -- %s \
// RUN:     | FileCheck %s
// CHECK: expect_step_order.cpp:

int main()
{
  volatile int x = 1; // DexExpectStepOrder(1)
  volatile int y = 1; // DexExpectStepOrder(2)
  volatile int z = 1; // DexExpectStepOrder(3)
  return 0;
}
OpenPOWER on IntegriCloud