blob: e6dd7e6292af509333413e9b894d9b1624efd1ba [file] [log] [blame]
Dean Michael Berrisf686a902017-09-26 04:00:41 +00001// RUN: %clangxx -shared -o /dev/null -v -fxray-instrument %s 2>&1 | \
Dean Michael Berrisc67811c2017-09-26 03:18:11 +00002// RUN: FileCheck %s --check-prefix=SHARED
3// RUN: %clangxx -static -o /dev/null -v -fxray-instrument %s 2>&1 -DMAIN | \
4// RUN: FileCheck %s --check-prefix=STATIC
Dean Michael Berrisc67811c2017-09-26 03:18:11 +00005//
6// SHARED-NOT: {{clang_rt\.xray-}}
7// STATIC: {{clang_rt\.xray-}}
8//
9// REQUIRES: linux
10int foo() { return 42; }
11
12#ifdef MAIN
13int main() { return foo(); }
14#endif