mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-25 06:18:56 -04:00

Summary: Adds a new -fsanitize=efficiency-working-set flag to enable esan's working set tool. Adds appropriate tests for the new flag. Reviewers: aizatsky Subscribers: vitalybuka, zhaoqin, kcc, eugenis, llvm-commits Differential Revision: http://reviews.llvm.org/D20484 llvm-svn: 270641
13 lines
496 B
C++
13 lines
496 B
C++
// RUN: %clang_cc1 -E -fsanitize=efficiency-cache-frag %s -o - | FileCheck --check-prefix=CHECK-ESAN %s
|
|
// RUN: %clang_cc1 -E -fsanitize=efficiency-working-set %s -o - | FileCheck --check-prefix=CHECK-ESAN %s
|
|
// RUN: %clang_cc1 -E %s -o - | FileCheck --check-prefix=CHECK-NO-ESAN %s
|
|
|
|
#if __has_feature(efficiency_sanitizer)
|
|
int EfficiencySanitizerEnabled();
|
|
#else
|
|
int EfficiencySanitizerDisabled();
|
|
#endif
|
|
|
|
// CHECK-ESAN: EfficiencySanitizerEnabled
|
|
// CHECK-NO-ESAN: EfficiencySanitizerDisabled
|