xref: /llvm-project/compiler-rt/test/safestack/lto.c (revision e5f025dad932591b2a9d5394da8c901acdff0346)
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 int puts(const char *);
8 
main()9 int main() {
10   char c[] = "hello world";
11   puts(c);
12   return 0;
13 }
14