1 // REQUIRES: system-windows
3 // RUN: %clang_cl /Z7 /Zi %s -o %t
4 // RUN: %dexter --fail-lt 1.0 -w --binary %t --debugger 'dbgeng' -- %s
6 // From https://llvm.org/pr38857, where we had issues with stack realignment.
10 int __declspec(noinline
) foo();
11 void __declspec(noinline
) bar(int *a
, int *b
, double *c
);
16 double __declspec(align(32)) force_alignment
= 0.42;
17 bar(&a
, &b
, &force_alignment
); // DexLabel('in_foo')
18 x
+= (int)force_alignment
;
21 void Foo::bar(int *a
, int *b
, double *c
) {
22 *c
+= *a
+ *b
; // DexLabel('in_bar')
29 DexExpectProgramState({'frames':[
30 {'function': 'Foo::bar', 'location' : {'lineno' : ref('in_bar')} },
31 {'function': 'Foo::foo',
35 'force_alignment' : '0.42'