xref: /aosp_15_r20/external/compiler-rt/test/safestack/lto.c (revision 7c3d14c8b49c529e04be81a3ce6f5cc23712e4c6)
1 // REQUIRES: lto
2 
3 // RUN: %clang_lto_safestack %s -o %t
4 // RUN: %run %t
5 
6 // Test that safe stack works with LTO.
7 
main()8 int main() {
9   char c[] = "hello world";
10   puts(c);
11   return 0;
12 }
13