]> granicus.if.org Git - clang/commitdiff
[XRay][clang] Add more test cases of -fxray-modes= (NFC)
authorDean Michael Berris <dberris@google.com>
Tue, 14 Aug 2018 09:16:37 +0000 (09:16 +0000)
committerDean Michael Berris <dberris@google.com>
Tue, 14 Aug 2018 09:16:37 +0000 (09:16 +0000)
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

test/Driver/XRay/xray-mode-flags.cpp

index 0a040881d332cf2d7564fba89976e34240c52e04..281cf0b547fa54b42e003d14ed6cd67a2f160bdc 100644 (file)
 // 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