Revert "[lldb][test] Remove compiler version check and use regex" (#124101)
[llvm-project.git] / compiler-rt / test / hwasan / TestCases / musttail.cpp
blob89b58e6331da9040098551e32f9c3f5cd04f8355
1 // RUN: %clangxx_hwasan -mllvm -hwasan-use-stack-safety=0 %s -o %t
2 // RUN: %run %t
3 //
4 // REQUIRES: pointer-tagging
6 __attribute__((noinline)) int bar(int X) { return X; }
8 __attribute__((noinline)) int foo(int X) {
9 volatile int A = 5;
10 [[clang::musttail]] return bar(X + A);
13 int main(int Argc, char *Argv[]) { return foo(Argc) != 6; }