[flang] Accept polymorphic component element in storage_size
[llvm-project.git] / cross-project-tests / debuginfo-tests / dexter-tests / memvars / inlining.c
blobb8468fbc8d8677a0390b33c333369be3f97396e3
1 // REQUIRES: lldb
2 // UNSUPPORTED: system-windows
3 // RUN: %dexter --fail-lt 1.0 -w --debugger lldb \
4 // RUN: --builder clang-c --cflags "-O2 -glldb" -- %s
5 //
6 //// Check that the once-escaped variable 'param' can still be read after
7 //// we perform inlining + mem2reg. See D89810 and D85555.
9 int g;
10 __attribute__((__always_inline__))
11 static void use(int* p) {
12 g = *p;
15 __attribute__((__noinline__))
16 void fun(int param) {
17 volatile int step1 = 0; // DexLabel('s1')
18 use(&param);
19 volatile int step2 = 0; // DexLabel('s2')
22 int main() {
23 fun(5);
26 // DexExpectWatchValue('param', '5', from_line=ref('s1'), to_line=ref('s2'))