1 // Don't attempt slash switches on msys bash. 2 // REQUIRES: shell-preserves-root 3 4 // Note: %s must be preceded by --, otherwise it may be interpreted as a 5 // command-line option, e.g. on Mac where %s is commonly under /Users. 6 7 // RUN: %clang_cl /TC -### -- %s 2>&1 | FileCheck -check-prefix=TC %s 8 // TC: "-x" "c" 9 10 // RUN: %clang_cl /TP -### -- %s 2>&1 | FileCheck -check-prefix=TP %s 11 // TP: "-x" "c++" 12 13 // RUN: %clang_cl -### /Tc%s 2>&1 | FileCheck -check-prefix=Tc %s 14 // RUN: %clang_cl -### /TP /Tc%s 2>&1 | FileCheck -check-prefix=Tc %s 15 // Tc: "-x" "c" 16 17 // RUN: %clang_cl -### /Tp%s 2>&1 | FileCheck -check-prefix=Tp %s 18 // RUN: %clang_cl -### /TC /Tp%s 2>&1 | FileCheck -check-prefix=Tp %s 19 // Tp: "-x" "c++" 20 21 // RUN: %clang_cl /TP /TC -### -- %s 2>&1 | FileCheck -check-prefix=WARN %s 22 // WARN: overriding '/TP' option with '/TC' 23