[InstCombine] Preserve NSW flags for `lshr (mul nuw X, C1), C2 -> mul nuw nsw X,...
[llvm-project.git] / clang / test / CodeGenCXX / sanitize-dtor-trivial.cpp
blob9b473b2e16f57af12af6f8879126185522401c6e
1 // Test -fsanitize-memory-use-after-dtor
2 // RUN: %clang_cc1 -O0 -fsanitize=memory -fsanitize-memory-use-after-dtor -disable-llvm-passes -std=c++11 -triple=x86_64-pc-linux -emit-llvm -debug-info-kind=line-tables-only -o - %s | FileCheck %s --implicit-check-not="call void @__sanitizer_"
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 -debug-info-kind=line-tables-only -o - %s | FileCheck %s --implicit-check-not="call void @__sanitizer_"
5 // TODO Success pending on resolution of issue:
6 // https://github.com/google/sanitizers/issues/596
7 // XFAIL: *
9 struct Trivial {
10 int a;
11 int b;
13 Trivial t;
15 // CHECK: call void @__sanitizer_dtor_callback({{.*}}, !dbg ![[DI:[0-9]+]]
17 // CHECK-LABEL: !DIFile{{.*}}.cpp
19 // CHECK: ![[DI]] = {{.*}}line: [[@LINE-9]]