| // RUN: %clang_cl %s -o %t.exe -fuse-ld=lld -Z7 |
| // RUN: grep DE[B]UGGER: %s | sed -e 's/.*DE[B]UGGER: //' > %t.script |
| // RUN: %cdb -cf %t.script %t.exe | FileCheck %s --check-prefixes=DEBUGGER,CHECK |
| // From https://llvm.org/pr38857, where we had issues with stack realignment. |
| int __declspec(noinline) foo(); |
| void __declspec(noinline) bar(int *a, int *b, double *c); |
| double __declspec(align(32)) force_alignment = 0.42; |
| bar(&a, &b, &force_alignment); |
| // CHECK: force_alignment = 0.41999{{.*}} |
| x += (int)force_alignment; |
| void Foo::bar(int *a, int *b, double *c) { |