[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
(0d2860b795) 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.
This commit is contained in:
committed by
GitHub
parent
179a2e0443
commit
a8837b49c1
@@ -10,7 +10,9 @@
|
|||||||
//// Check debug-info for the escaped struct variable num is reasonable.
|
//// Check debug-info for the escaped struct variable num is reasonable.
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
struct Nums { int a, b, c; };
|
struct Nums {
|
||||||
|
int a, b, c, d, e, f, g, h, i, j;
|
||||||
|
};
|
||||||
struct Nums glob;
|
struct Nums glob;
|
||||||
__attribute__((__noinline__))
|
__attribute__((__noinline__))
|
||||||
void esc(struct Nums* nums) {
|
void esc(struct Nums* nums) {
|
||||||
|
|||||||
Reference in New Issue
Block a user