Changeset View
Changeset View
Standalone View
Standalone View
clang/test/CodeGenCXX/lifetime-sanitizer.cpp
// RUN: %clang -w -target x86_64-linux-gnu -S -emit-llvm -o - -fno-exceptions -O0 %s | \ | // RUN: %clang -w -target x86_64-linux-gnu -S -emit-llvm -o - -fno-exceptions -O0 %s | \ | ||||
// RUN: FileCheck %s -check-prefixes=CHECK,CHECK-O0 --implicit-check-not=llvm.lifetime | // FIXME: automatically inserted -allow-unused-prefixes=true. Is the behavior intended? | ||||
// RUN: FileCheck %s -allow-unused-prefixes=true -check-prefixes=CHECK,CHECK-O0 --implicit-check-not=llvm.lifetime | |||||
// RUN: %clang -w -target x86_64-linux-gnu -S -emit-llvm -o - -fno-exceptions -O0 \ | // RUN: %clang -w -target x86_64-linux-gnu -S -emit-llvm -o - -fno-exceptions -O0 \ | ||||
// RUN: -fsanitize=address -fsanitize-address-use-after-scope %s | \ | // RUN: -fsanitize=address -fsanitize-address-use-after-scope %s | \ | ||||
// RUN: FileCheck %s -check-prefixes=CHECK,LIFETIME | // FIXME: automatically inserted -allow-unused-prefixes=true. Is the behavior intended? | ||||
// RUN: FileCheck %s -allow-unused-prefixes=true -check-prefixes=CHECK,LIFETIME | |||||
// RUN: %clang -w -target x86_64-linux-gnu -S -emit-llvm -o - -fno-exceptions -O0 \ | // RUN: %clang -w -target x86_64-linux-gnu -S -emit-llvm -o - -fno-exceptions -O0 \ | ||||
// RUN: -fsanitize=memory %s | \ | // RUN: -fsanitize=memory %s | \ | ||||
// RUN: FileCheck %s -check-prefixes=CHECK,LIFETIME | // FIXME: automatically inserted -allow-unused-prefixes=true. Is the behavior intended? | ||||
// RUN: FileCheck %s -allow-unused-prefixes=true -check-prefixes=CHECK,LIFETIME | |||||
// RUN: %clang -w -target aarch64-linux-gnu -S -emit-llvm -o - -fno-exceptions -O0 \ | // RUN: %clang -w -target aarch64-linux-gnu -S -emit-llvm -o - -fno-exceptions -O0 \ | ||||
// RUN: -fsanitize=hwaddress %s | \ | // RUN: -fsanitize=hwaddress %s | \ | ||||
// RUN: FileCheck %s -check-prefixes=CHECK,LIFETIME | // FIXME: automatically inserted -allow-unused-prefixes=true. Is the behavior intended? | ||||
// RUN: FileCheck %s -allow-unused-prefixes=true -check-prefixes=CHECK,LIFETIME | |||||
extern int bar(char *A, int n); | extern int bar(char *A, int n); | ||||
struct X { | struct X { | ||||
X(); | X(); | ||||
~X(); | ~X(); | ||||
int *p; | int *p; | ||||
}; | }; | ||||
Show All 40 Lines |