Author: dberris Date: Tue Aug 14 02:16:37 2018 New Revision: 339662 URL: http://llvm.org/viewvc/llvm-project?rev=339662&view=rev Log: [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. Modified: cfe/trunk/test/Driver/XRay/xray-mode-flags.cpp Modified: cfe/trunk/test/Driver/XRay/xray-mode-flags.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/XRay/xray-mode-flags.cpp?rev=339662&r1=339661&r2=339662&view=diff ============================================================================== --- cfe/trunk/test/Driver/XRay/xray-mode-flags.cpp (original) +++ cfe/trunk/test/Driver/XRay/xray-mode-flags.cpp Tue Aug 14 02:16:37 2018 @@ -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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits