From: Dean Michael Berris Date: Tue, 14 Aug 2018 09:16:37 +0000 (+0000) Subject: [XRay][clang] Add more test cases of -fxray-modes= (NFC) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4a7be35fb4827e258c11abef633c8d3bb917c1b8;p=clang [XRay][clang] Add more test cases of -fxray-modes= (NFC) This confirms expectations for multiple values provided through the driver when selecting specific modes and the order of appearance of individual values for the `-fxray-modes=` flag. This change just adds more test cases to an existing test file. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@339662 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Driver/XRay/xray-mode-flags.cpp b/test/Driver/XRay/xray-mode-flags.cpp index 0a040881d3..281cf0b547 100644 --- a/test/Driver/XRay/xray-mode-flags.cpp +++ b/test/Driver/XRay/xray-mode-flags.cpp @@ -26,6 +26,20 @@ // RUN: %clang -v -o /dev/null -fxray-instrument -fxray-modes=none,all \ // RUN: -### %s \ // RUN: 2>&1 | FileCheck --check-prefixes FDR,BASIC %s +// +// We also should support having the individual modes be concatenated. +// +// RUN: %clang -v -o /dev/null -fxray-instrument -fxray-modes=none \ +// RUN: -fxray-modes=xray-fdr \ +// RUN: -### %s \ +// RUN: 2>&1 | FileCheck --check-prefixes FDR %s +// +// Order also matters. +// +// RUN: %clang -v -o /dev/null -fxray-instrument -fxray-modes=xray-fdr \ +// RUN: -fxray-modes=none \ +// RUN: -### %s \ +// RUN: 2>&1 | FileCheck --check-prefixes NONE %s // BASIC: libclang_rt.xray-basic // FDR: libclang_rt.xray-fdr