Files
clang-p2996/compiler-rt/test/hwasan/TestCases/check-interface.cpp
Florian Mayer fdac98a7f3 Remove stable-runtime from many tests
They pass on x86_64 host, arm64 host, and Android.

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D156273
2023-07-25 17:29:03 -07:00

21 lines
609 B
C++

// RUN: %clangxx_hwasan -mllvm -hwasan-instrument-with-calls=1 -O0 %s -o %t
// RUN: %clangxx_hwasan -mllvm -hwasan-instrument-with-calls=1 -O0 %s -o %t -fsanitize-recover=hwaddress
// Utilizes all flavors of __hwasan_load/store interface functions to verify
// that the instrumentation and the interface provided by HWASan do match.
// In case of a discrepancy, this test fails to link.
#include <sanitizer/hwasan_interface.h>
#define F(T) void f_##T(T *a, T *b) { *a = *b; }
F(uint8_t)
F(uint16_t)
F(uint32_t)
F(uint64_t)
typedef unsigned V32 __attribute__((__vector_size__(32)));
F(V32)
int main() {}