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.
7int puts(const char *);
8
9int main() {
10 char c[] = "hello world";
11 puts(c);
12 return 0;
13}
14

Provided by KDAB

Privacy Policy
Update your C++ knowledge – Modern C++11/14/17 Training
Find out more

source code of compiler-rt/test/safestack/lto.c