Files
clang-p2996/compiler-rt/test/asan/TestCases/shadowed-stack-serialization.cpp
gbMattN 59074a3760 [ASan] Add metadata to renamed instructions so ASan doesn't use the i… (#119387)
…ncorrect name

Clang needs variables to be represented with unique names. This means
that if a variable shadows another, its given a different name
internally to ensure it has a unique name. If ASan tries to use this
name when printing an error, it will print the modified unique name,
rather than the variable's source code name

Fixes #47326
2025-04-03 15:27:14 +01:00

13 lines
158 B
C++

// RUN: %clangxx_asan -O0 %s -o %t
// RUN: not %run %t 2>&1 | FileCheck %s
int main() {
int x;
{
int x;
delete &x;
}
}
// CHECK: [32, 36) 'x'