You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
2.0 KiB
29 lines
2.0 KiB
4 months ago
|
// RUN: %clang -### -fdebug-prefix-map=old %s 2>&1 | FileCheck %s -check-prefix CHECK-DEBUG-INVALID
|
||
|
// RUN: %clang -### -fmacro-prefix-map=old %s 2>&1 | FileCheck %s -check-prefix CHECK-MACRO-INVALID
|
||
|
// RUN: %clang -### -ffile-prefix-map=old %s 2>&1 | FileCheck %s -check-prefix CHECK-FILE-INVALID
|
||
|
|
||
|
// RUN: %clang -### -fdebug-prefix-map=old=new %s 2>&1 | FileCheck %s -check-prefix CHECK-DEBUG-SIMPLE
|
||
|
// RUN: %clang -### -fmacro-prefix-map=old=new %s 2>&1 | FileCheck %s -check-prefix CHECK-MACRO-SIMPLE
|
||
|
// RUN: %clang -### -ffile-prefix-map=old=new %s 2>&1 | FileCheck %s -check-prefix CHECK-DEBUG-SIMPLE
|
||
|
// RUN: %clang -### -ffile-prefix-map=old=new %s 2>&1 | FileCheck %s -check-prefix CHECK-MACRO-SIMPLE
|
||
|
|
||
|
// RUN: %clang -### -fdebug-prefix-map=old=n=ew %s 2>&1 | FileCheck %s -check-prefix CHECK-DEBUG-COMPLEX
|
||
|
// RUN: %clang -### -fmacro-prefix-map=old=n=ew %s 2>&1 | FileCheck %s -check-prefix CHECK-MACRO-COMPLEX
|
||
|
// RUN: %clang -### -ffile-prefix-map=old=n=ew %s 2>&1 | FileCheck %s -check-prefix CHECK-DEBUG-COMPLEX
|
||
|
// RUN: %clang -### -ffile-prefix-map=old=n=ew %s 2>&1 | FileCheck %s -check-prefix CHECK-MACRO-COMPLEX
|
||
|
|
||
|
// RUN: %clang -### -fdebug-prefix-map=old= %s 2>&1 | FileCheck %s -check-prefix CHECK-DEBUG-EMPTY
|
||
|
// RUN: %clang -### -fmacro-prefix-map=old= %s 2>&1 | FileCheck %s -check-prefix CHECK-MACRO-EMPTY
|
||
|
// RUN: %clang -### -ffile-prefix-map=old= %s 2>&1 | FileCheck %s -check-prefix CHECK-DEBUG-EMPTY
|
||
|
// RUN: %clang -### -ffile-prefix-map=old= %s 2>&1 | FileCheck %s -check-prefix CHECK-MACRO-EMPTY
|
||
|
|
||
|
// CHECK-DEBUG-INVALID: error: invalid argument 'old' to -fdebug-prefix-map
|
||
|
// CHECK-MACRO-INVALID: error: invalid argument 'old' to -fmacro-prefix-map
|
||
|
// CHECK-FILE-INVALID: error: invalid argument 'old' to -ffile-prefix-map
|
||
|
// CHECK-DEBUG-SIMPLE: fdebug-prefix-map=old=new
|
||
|
// CHECK-MACRO-SIMPLE: fmacro-prefix-map=old=new
|
||
|
// CHECK-DEBUG-COMPLEX: fdebug-prefix-map=old=n=ew
|
||
|
// CHECK-MACRO-COMPLEX: fmacro-prefix-map=old=n=ew
|
||
|
// CHECK-DEBUG-EMPTY: fdebug-prefix-map=old=
|
||
|
// CHECK-MACRO-EMPTY: fmacro-prefix-map=old=
|