Skip to content

Commit a8837b4

Browse files
[cross-project-tests] Fix struct-dse example so that it fails again (#73566)
The purpose of this example is to provide a case where the debugger / debug info experience could be improved. A recent commit by clang (0d2860b) changed codegen such that it changes how "small structs" are initialized, in a way that the debugger is now able to correctly display the variable being targeted by this test. In order to keep the example relevant, i.e. failing, this commit makes it so that the struct is now "big enough" to not trigger the new codegen.
1 parent 179a2e0 commit a8837b4

File tree

1 file changed

+3
-1
lines changed
  • cross-project-tests/debuginfo-tests/dexter-tests/memvars

1 file changed

+3
-1
lines changed

cross-project-tests/debuginfo-tests/dexter-tests/memvars/struct-dse.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
//// Check debug-info for the escaped struct variable num is reasonable.
1111

1212
#include <stdio.h>
13-
struct Nums { int a, b, c; };
13+
struct Nums {
14+
int a, b, c, d, e, f, g, h, i, j;
15+
};
1416
struct Nums glob;
1517
__attribute__((__noinline__))
1618
void esc(struct Nums* nums) {

0 commit comments

Comments
 (0)