blob: dc6f8a125a5514d4db919390dda5326864ac0646 [file] [log] [blame]
Dean Michael Berrisc67811c2017-09-26 03:18:11 +00001// RUN: %clangxx -shared -fPIC -o /dev/null -v -fxray-instrument %s 2>&1 | \
2// 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