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