brintos

brintos / llvm-project-archived public Read only

0
0
Text · 581 B · ffd573e Raw
22 lines · cpp
1// Test with the flag -fno-sanitize-memory-use-after-dtor, to ensure that2// instrumentation is not erroneously inserted3// RUN: %clang_cc1 -fsanitize=memory -fno-sanitize-memory-use-after-dtor -triple=x86_64-pc-linux -emit-llvm -o - %s | FileCheck %s --implicit-check-not="call void @__sanitizer_"4 5struct Simple {6  int x;7  ~Simple() {}8};9Simple s;10// CHECK-LABEL: define {{.*}}SimpleD1Ev11 12struct Inlined {13  int x;14  inline ~Inlined() {}15};16Inlined i;17// CHECK-LABEL: define {{.*}}InlinedD1Ev18 19// CHECK-LABEL: define {{.*}}SimpleD2Ev20 21// CHECK-LABEL: define {{.*}}InlinedD2Ev22