2015-09-09 00:38:17 +08:00
|
|
|
// Test -fsanitize-memory-use-after-dtor
|
2016-12-23 08:23:01 +08:00
|
|
|
// RUN: %clang_cc1 -O0 -fsanitize=memory -fsanitize-memory-use-after-dtor -disable-llvm-passes -std=c++11 -triple=x86_64-pc-linux -emit-llvm -o - %s | FileCheck %s
|
|
|
|
// RUN: %clang_cc1 -O1 -fsanitize=memory -fsanitize-memory-use-after-dtor -disable-llvm-passes -std=c++11 -triple=x86_64-pc-linux -emit-llvm -o - %s | FileCheck %s
|
2015-09-09 00:38:17 +08:00
|
|
|
|
|
|
|
// TODO Success pending on resolution of issue:
|
|
|
|
// https://github.com/google/sanitizers/issues/596
|
|
|
|
// XFAIL: *
|
|
|
|
|
|
|
|
struct Trivial {
|
|
|
|
int a;
|
|
|
|
int b;
|
|
|
|
};
|
|
|
|
Trivial t;
|
|
|
|
|
|
|
|
// CHECK: call void @__sanitizer_dtor_callback
|