| 1 |
// RUN: not %clang -### -fdebug-prefix-map=old %s 2>&1 | FileCheck %s -check-prefix CHECK-DEBUG-INVALID |
| 2 |
// RUN: not %clang -### -fmacro-prefix-map=old %s 2>&1 | FileCheck %s -check-prefix CHECK-MACRO-INVALID |
| 3 |
// RUN: not %clang -### -fcoverage-prefix-map=old %s 2>&1 | FileCheck %s -check-prefix CHECK-COVERAGE-INVALID |
| 4 |
// RUN: not %clang -### -ffile-prefix-map=old %s 2>&1 | FileCheck %s -check-prefix CHECK-FILE-INVALID |
| 5 |
|
| 6 |
// RUN: %clang -### -fdebug-prefix-map=old=new %s 2>&1 | FileCheck %s -check-prefix CHECK-DEBUG-SIMPLE |
| 7 |
// RUN: %clang -### -fmacro-prefix-map=old=new %s 2>&1 | FileCheck %s -check-prefix CHECK-MACRO-SIMPLE |
| 8 |
// RUN: %clang -### -fcoverage-prefix-map=old=new %s 2>&1 | FileCheck %s -check-prefix CHECK-COVERAGE-SIMPLE |
| 9 |
// RUN: %clang -### -ffile-prefix-map=old=new %s 2>&1 | FileCheck %s -check-prefix CHECK-DEBUG-SIMPLE |
| 10 |
// RUN: %clang -### -ffile-prefix-map=old=new %s 2>&1 | FileCheck %s -check-prefix CHECK-MACRO-SIMPLE |
| 11 |
// RUN: %clang -### -ffile-prefix-map=old=new %s 2>&1 | FileCheck %s -check-prefix CHECK-COVERAGE-SIMPLE |
| 12 |
|
| 13 |
// RUN: %clang -### -fdebug-prefix-map=old=n=ew %s 2>&1 | FileCheck %s -check-prefix CHECK-DEBUG-COMPLEX |
| 14 |
// RUN: %clang -### -fmacro-prefix-map=old=n=ew %s 2>&1 | FileCheck %s -check-prefix CHECK-MACRO-COMPLEX |
| 15 |
// RUN: %clang -### -fcoverage-prefix-map=old=n=ew %s 2>&1 | FileCheck %s -check-prefix CHECK-COVERAGE-COMPLEX |
| 16 |
// RUN: %clang -### -ffile-prefix-map=old=n=ew %s 2>&1 | FileCheck %s -check-prefix CHECK-DEBUG-COMPLEX |
| 17 |
// RUN: %clang -### -ffile-prefix-map=old=n=ew %s 2>&1 | FileCheck %s -check-prefix CHECK-MACRO-COMPLEX |
| 18 |
// RUN: %clang -### -ffile-prefix-map=old=n=ew %s 2>&1 | FileCheck %s -check-prefix CHECK-COVERAGE-COMPLEX |
| 19 |
|
| 20 |
// RUN: %clang -### -fdebug-prefix-map=old= %s 2>&1 | FileCheck %s -check-prefix CHECK-DEBUG-EMPTY |
| 21 |
// RUN: %clang -### -fmacro-prefix-map=old= %s 2>&1 | FileCheck %s -check-prefix CHECK-MACRO-EMPTY |
| 22 |
// RUN: %clang -### -fcoverage-prefix-map=old= %s 2>&1 | FileCheck %s -check-prefix CHECK-COVERAGE-EMPTY |
| 23 |
// RUN: %clang -### -ffile-prefix-map=old= %s 2>&1 | FileCheck %s -check-prefix CHECK-DEBUG-EMPTY |
| 24 |
// RUN: %clang -### -ffile-prefix-map=old= %s 2>&1 | FileCheck %s -check-prefix CHECK-MACRO-EMPTY |
| 25 |
// RUN: %clang -### -ffile-prefix-map=old= %s 2>&1 | FileCheck %s -check-prefix CHECK-COVERAGE-EMPTY |
| 26 |
|
| 27 |
// CHECK-DEBUG-INVALID: error: invalid argument 'old' to -fdebug-prefix-map |
| 28 |
// CHECK-MACRO-INVALID: error: invalid argument 'old' to -fmacro-prefix-map |
| 29 |
// CHECK-COVERAGE-INVALID: error: invalid argument 'old' to -fcoverage-prefix-map |
| 30 |
// CHECK-FILE-INVALID: error: invalid argument 'old' to -ffile-prefix-map |
| 31 |
// CHECK-DEBUG-SIMPLE: fdebug-prefix-map=old=new |
| 32 |
// CHECK-MACRO-SIMPLE: fmacro-prefix-map=old=new |
| 33 |
// CHECK-COVERAGE-SIMPLE: fcoverage-prefix-map=old=new |
| 34 |
// CHECK-DEBUG-COMPLEX: fdebug-prefix-map=old=n=ew |
| 35 |
// CHECK-MACRO-COMPLEX: fmacro-prefix-map=old=n=ew |
| 36 |
// CHECK-COVERAGE-COMPLEX: fcoverage-prefix-map=old=n=ew |
| 37 |
// CHECK-DEBUG-EMPTY: fdebug-prefix-map=old= |
| 38 |
// CHECK-MACRO-EMPTY: fmacro-prefix-map=old= |
| 39 |
// CHECK-COVERAGE-EMPTY: fcoverage-prefix-map=old= |