blob: 9e328c0a2895212fe04c1e9228fbada816952cd2 [file] [log] [blame]
Naomi Musgrave4e213982015-09-08 16:38:17 +00001// Test -fsanitize-memory-use-after-dtor
Chandler Carruth93786da2016-12-23 00:23:01 +00002// 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
3// 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
Naomi Musgrave4e213982015-09-08 16:38:17 +00004
5// TODO Success pending on resolution of issue:
6// https://github.com/google/sanitizers/issues/596
7// XFAIL: *
8
9struct Trivial {
10 int a;
11 int b;
12};
13Trivial t;
14
15// CHECK: call void @__sanitizer_dtor_callback