summaryrefslogtreecommitdiff
path: root/compiler-rt/test/safestack/lto.c
blob: 2aeb755261873b1058942614167e2878fceab24c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// REQUIRES: lto

// RUN: %clang_lto_safestack %s -o %t
// RUN: %run %t

// Test that safe stack works with LTO.
int puts(const char *);

int main() {
  char c[] = "hello world";
  puts(c);
  return 0;
}