[XRay][compiler-rt][NFC] Expand the PIC test case for XRay

Summary:
Here we add a build with -ffunction-sections -fdata-sections and
-Wl,--gc-sections to ensure that we're still able to generate XRay
traces.

This is just adding a test, no functional changes.

Differential Revision: https://reviews.llvm.org/D36863

llvm-svn: 311145
This commit is contained in:
Dean Michael Berris 2017-08-18 05:24:32 +00:00
parent e3edd9c9be
commit 7eaaa0f0f2
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
// Test to check if we handle pic code properly.
// RUN: %clangxx_xray -fxray-instrument -std=c++11 -fpic %s -o %t
// RUN: %clangxx_xray -fxray-instrument -std=c++11 -ffunction-sections \
// RUN: -fdata-sections -fpic -fpie -Wl,--gc-sections %s -o %t
// RUN: XRAY_OPTIONS="patch_premain=true verbosity=1 xray_logfile_base=pic-test-logging-" %run %t 2>&1 | FileCheck %s
// After all that, clean up the output xray log.
//