================ @@ -0,0 +1,62 @@ +// REQUIRES: librt_has_emupac +// RUN: %clang_builtins %s %librt -o %t +// RUN: %run %t 1 +// RUN: %run %t 2 +// RUN: %expect_crash %run %t 3 +// RUN: %expect_crash %run %t 4 + +#include <stdint.h> +#include <stdio.h> +#include <stdlib.h> + +uint64_t __emupac_pacda(uint64_t ptr, uint64_t disc); +uint64_t __emupac_autda(uint64_t ptr, uint64_t disc); + +int main(int argc, char **argv) { + char stack_object1; + uint64_t ptr1 = (uint64_t)stack_object1; ---------------- atrosinenko wrote:
`(uint64_t)&stack_object1` was probably intended (the same for `stack_object2`). https://github.com/llvm/llvm-project/pull/133530 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits