…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
13 lines
158 B
C++
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'
|