summaryrefslogtreecommitdiff
path: root/test/Driver/XRay/xray-mode-flags.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Driver/XRay/xray-mode-flags.cpp')
-rw-r--r--test/Driver/XRay/xray-mode-flags.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/Driver/XRay/xray-mode-flags.cpp b/test/Driver/XRay/xray-mode-flags.cpp
index 0a040881d332c..281cf0b547fa5 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