summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/shadowcallstack/init.c
blob: f84f38d713e286800ceb6251ca10118a192f5aca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// RUN: %clang_scs -D INCLUDE_RUNTIME %s -o %t
// RUN: %run %t

// RUN: %clang_scs %s -o %t
// RUN: not --crash %run %t

// Basic smoke test for the runtime

#include "libc_support.h"

#ifdef INCLUDE_RUNTIME
#include "minimal_runtime.h"
#else
#define scs_main main
#endif

int scs_main(void) {
  scs_fputs_stdout("In main.\n");
  return 0;
}
OpenPOWER on IntegriCloud