Skip to content

Commit e6c2e50

Browse files
author
klensy
committed
adopt tests for new restirction
1 parent 3869f1b commit e6c2e50

27 files changed

+103
-103
lines changed

clang-tools-extra/test/clang-move/move-class.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@
99
// RUN: clang-move -names="a::Foo" -new_cc=%T/clang-move/new_test.cpp -new_header=%T/clang-move/new_test.h -old_cc=../src/test.cpp -old_header=../include/test.h %T/clang-move/src/test.cpp
1010
// RUN: FileCheck -input-file=%T/clang-move/new_test.cpp -check-prefix=CHECK-NEW-TEST-CPP %s
1111
// RUN: FileCheck -input-file=%T/clang-move/new_test.h -check-prefix=CHECK-NEW-TEST-H %s
12-
// RUN: FileCheck -input-file=%T/clang-move/src/test.cpp -check-prefix=CHECK-OLD-TEST-EMPTY -allow-empty %s
13-
// RUN: FileCheck -input-file=%T/clang-move/include/test.h -check-prefix=CHECK-OLD-TEST-EMPTY -allow-empty %s
12+
// RUN: FileCheck -input-file=%T/clang-move/src/test.cpp -check-prefix=CHECK-OLD-TEST -allow-empty %s
13+
// RUN: FileCheck -input-file=%T/clang-move/include/test.h -check-prefix=CHECK-OLD-TEST -allow-empty %s
1414
//
1515
// RUN: cp %S/Inputs/test.h %T/clang-move/include
1616
// RUN: cp %S/Inputs/test.cpp %T/clang-move/src
1717
// RUN: cd %T/clang-move/build
1818
// RUN: clang-move -names="a::Foo" -new_cc=%T/clang-move/new_test.cpp -new_header=%T/clang-move/new_test.h -old_cc=%T/clang-move/src/test.cpp -old_header=%T/clang-move/include/test.h %T/clang-move/src/test.cpp
1919
// RUN: FileCheck -input-file=%T/clang-move/new_test.cpp -check-prefix=CHECK-NEW-TEST-CPP %s
2020
// RUN: FileCheck -input-file=%T/clang-move/new_test.h -check-prefix=CHECK-NEW-TEST-H %s
21-
// RUN: FileCheck -input-file=%T/clang-move/src/test.cpp -check-prefix=CHECK-OLD-TEST-EMPTY -allow-empty %s
22-
// RUN: FileCheck -input-file=%T/clang-move/include/test.h -check-prefix=CHECK-OLD-TEST-EMPTY -allow-empty %s
21+
// RUN: FileCheck -input-file=%T/clang-move/src/test.cpp -check-prefix=CHECK-OLD-TEST -allow-empty %s
22+
// RUN: FileCheck -input-file=%T/clang-move/include/test.h -check-prefix=CHECK-OLD-TEST -allow-empty %s
2323
//
2424
//
2525
// CHECK-NEW-TEST-H: #ifndef TEST_H // comment 1
@@ -40,4 +40,4 @@
4040
// CHECK-NEW-TEST-CPP: int Foo::f2(int a, int b) { return a + b; }
4141
// CHECK-NEW-TEST-CPP: } // namespace a
4242
//
43-
// CHECK-OLD-TEST-EMPTY: {{^}}{{$}}
43+
// CHECK-OLD-TEST: {{^}}{{$}}

clang-tools-extra/test/clang-move/move-enum-decl.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@
3939
// RUN: cp %S/Inputs/enum.h %T/move-enum/enum.h
4040
// RUN: echo '#include "enum.h"' > %T/move-enum/enum.cpp
4141
// RUN: clang-move -names="a::C::E3" -new_cc=%T/move-enum/new_test.cpp -new_header=%T/move-enum/new_test.h -old_cc=%T/move-enum/enum.cpp -old_header=%T/move-enum/enum.h %T/move-enum/enum.cpp -- -std=c++11
42-
// RUN: FileCheck -input-file=%T/move-enum/new_test.h -allow-empty -check-prefix=CHECK-EMPTY %s
42+
// RUN: FileCheck -input-file=%T/move-enum/new_test.h -allow-empty -check-prefix=CHECK-CLEAN %s
4343

44-
// CHECK-EMPTY: {{^}}{{$}}
44+
// CHECK-CLEAN: {{^}}{{$}}

clang-tools-extra/test/clang-move/move-function.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@
4242
//
4343
// RUN: cat %S/Inputs/function_test.h > %T/move-function/function_test.h
4444
// RUN: cat %S/Inputs/function_test.cpp > %T/move-function/function_test.cpp
45-
// RUN: clang-move -names="A::f" -new_header=%T/move-function/new_function_test.h -new_cc=%T/move-function/new_function_test.cpp -old_header=../move-function/function_test.h -old_cc=../move-function/function_test.cpp %T/move-function/function_test.cpp -dump_result -- | FileCheck %s -check-prefix=CHECK-EMPTY
45+
// RUN: clang-move -names="A::f" -new_header=%T/move-function/new_function_test.h -new_cc=%T/move-function/new_function_test.cpp -old_header=../move-function/function_test.h -old_cc=../move-function/function_test.cpp %T/move-function/function_test.cpp -dump_result -- | FileCheck %s -check-prefix=CHECK-CLEAN
4646
//
47-
// CHECK-EMPTY: [{{[[:space:]]*}}]
47+
// CHECK-CLEAN: [{{[[:space:]]*}}]
4848
//
4949
// RUN: cat %S/Inputs/function_test.h > %T/move-function/function_test.h
5050
// RUN: cat %S/Inputs/function_test.cpp > %T/move-function/function_test.cpp

clang-tools-extra/test/clang-move/move-multiple-classes.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
// RUN: mkdir -p %T/move-multiple-classes
22
// RUN: cp %S/Inputs/multiple_class_test* %T/move-multiple-classes/
33
// RUN: cd %T/move-multiple-classes
4-
// RUN: clang-move -names="c::EnclosingMove5::Nested" -new_cc=%T/move-multiple-classes/new_multiple_class_test.cpp -new_header=%T/move-multiple-classes/new_multiple_class_test.h -old_cc=%T/move-multiple-classes/multiple_class_test.cpp -old_header=../move-multiple-classes/multiple_class_test.h -dump_result %T/move-multiple-classes/multiple_class_test.cpp -- -std=c++11| FileCheck %s -check-prefix=CHECK-EMPTY
4+
// RUN: clang-move -names="c::EnclosingMove5::Nested" -new_cc=%T/move-multiple-classes/new_multiple_class_test.cpp -new_header=%T/move-multiple-classes/new_multiple_class_test.h -old_cc=%T/move-multiple-classes/multiple_class_test.cpp -old_header=../move-multiple-classes/multiple_class_test.h -dump_result %T/move-multiple-classes/multiple_class_test.cpp -- -std=c++11| FileCheck %s -check-prefix=CHECK-CLEAN
55
// RUN: clang-move -names="a::Move1, b::Move2,c::Move3,c::Move4,c::EnclosingMove5" -new_cc=%T/move-multiple-classes/new_multiple_class_test.cpp -new_header=%T/move-multiple-classes/new_multiple_class_test.h -old_cc=%T/move-multiple-classes/multiple_class_test.cpp -old_header=../move-multiple-classes/multiple_class_test.h %T/move-multiple-classes/multiple_class_test.cpp -- -std=c++11
66
// RUN: FileCheck -input-file=%T/move-multiple-classes/new_multiple_class_test.cpp -check-prefix=CHECK-NEW-TEST-CPP %s
77
// RUN: FileCheck -input-file=%T/move-multiple-classes/new_multiple_class_test.h -check-prefix=CHECK-NEW-TEST-H %s
88
// RUN: FileCheck -input-file=%T/move-multiple-classes/multiple_class_test.cpp -check-prefix=CHECK-OLD-TEST-CPP %s
99
// RUN: FileCheck -input-file=%T/move-multiple-classes/multiple_class_test.h -check-prefix=CHECK-OLD-TEST-H %s
1010
//
11-
// CHECK-EMPTY: [{{[[:space:]]*}}]
11+
// CHECK-CLEAN: [{{[[:space:]]*}}]
1212
//
1313
// CHECK-OLD-TEST-H: namespace c {
1414
// CHECK-OLD-TEST-H: class NoMove {

clang-tools-extra/test/clang-move/move-template-class.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// RUN: cp %S/Inputs/template_class_test* %T/move-template-class
33
// RUN: cd %T/move-template-class
44
// RUN: clang-move -names="A,B" -new_cc=%T/move-template-class/new_template_class_test.cpp -new_header=%T/move-template-class/new_template_class_test.h -old_cc=%T/move-template-class/template_class_test.cpp -old_header=../move-template-class/template_class_test.h %T/move-template-class/template_class_test.cpp --
5-
// RUN: FileCheck -input-file=%T/move-template-class/template_class_test.cpp -check-prefix=CHECK-OLD-TEST-EMPTY -allow-empty %s
6-
// RUN: FileCheck -input-file=%T/move-template-class/template_class_test.h -check-prefix=CHECK-OLD-TEST-EMPTY -allow-empty %s
5+
// RUN: FileCheck -input-file=%T/move-template-class/template_class_test.cpp -check-prefix=CHECK-OLD-TEST -allow-empty %s
6+
// RUN: FileCheck -input-file=%T/move-template-class/template_class_test.h -check-prefix=CHECK-OLD-TEST -allow-empty %s
77
// RUN: FileCheck -input-file=%T/move-template-class/new_template_class_test.cpp -check-prefix=CHECK-NEW-TEST-CPP-CASE1 %s
88
// RUN: FileCheck -input-file=%T/move-template-class/new_template_class_test.h -check-prefix=CHECK-NEW-TEST-H-CASE1 %s
99
//
@@ -15,7 +15,7 @@
1515
// RUN: FileCheck -input-file=%T/move-template-class/new_template_class_test.cpp -check-prefix=CHECK-NEW-TEST-CPP-CASE2 %s
1616
//
1717
//
18-
// CHECK-OLD-TEST-EMPTY: {{^}}{{$}}
18+
// CHECK-OLD-TEST: {{^}}{{$}}
1919
//
2020
// CHECK-NEW-TEST-H-CASE1: #ifndef TEMPLATE_CLASS_TEST_H // comment 1
2121
// CHECK-NEW-TEST-H-CASE1: #define TEMPLATE_CLASS_TEST_H

clang-tools-extra/test/clang-move/move-type-alias.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@
4747
// RUN: cp %S/Inputs/type_alias.h %T/move-type-alias/type_alias.h
4848
// RUN: echo '#include "type_alias.h"' > %T/move-type-alias/type_alias.cpp
4949
// RUN: clang-move -names="C::Int3" -new_cc=%T/move-type-alias/new_test.cpp -new_header=%T/move-type-alias/new_test.h -old_cc=%T/move-type-alias/type_alias.cpp -old_header=%T/move-type-alias/type_alias.h %T/move-type-alias/type_alias.cpp -- -std=c++11
50-
// RUN: FileCheck -input-file=%T/move-type-alias/new_test.h -allow-empty -check-prefix=CHECK-EMPTY %s
50+
// RUN: FileCheck -input-file=%T/move-type-alias/new_test.h -allow-empty -check-prefix=CHECK-CLEAN %s
5151

52-
// CHECK-EMPTY: {{^}}{{$}}
52+
// CHECK-CLEAN: {{^}}{{$}}

clang-tools-extra/test/clang-move/move-used-helper-decls.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,8 @@
298298
// RUN: clang-move -names="a::Class1, a::Class2, a::Class3, a::Class4, a::Class5, a::Class5, a::Class6, a::Class7, a::Fun1, a::Fun2, b::Fun3" -new_cc=%T/used-helper-decls/new_helper_decls_test.cpp -new_header=%T/used-helper-decls/new_helper_decls_test.h -old_cc=%T/used-helper-decls/helper_decls_test.cpp -old_header=../used-helper-decls/helper_decls_test.h %T/used-helper-decls/helper_decls_test.cpp -- -std=c++11
299299
// RUN: FileCheck -input-file=%T/used-helper-decls/new_helper_decls_test.h -check-prefix=CHECK-NEW-H %s
300300
// RUN: FileCheck -input-file=%T/used-helper-decls/new_helper_decls_test.cpp -check-prefix=CHECK-NEW-CPP %s
301-
// RUN: FileCheck -input-file=%T/used-helper-decls/helper_decls_test.h -allow-empty -check-prefix=CHECK-EMPTY %s
302-
// RUN: FileCheck -input-file=%T/used-helper-decls/helper_decls_test.cpp -allow-empty -check-prefix=CHECK-EMPTY %s
301+
// RUN: FileCheck -input-file=%T/used-helper-decls/helper_decls_test.h -allow-empty -check-prefix=CHECK-CLEAN %s
302+
// RUN: FileCheck -input-file=%T/used-helper-decls/helper_decls_test.cpp -allow-empty -check-prefix=CHECK-CLEAN %s
303303

304304

305305
// CHECK-NEW-H: namespace a {
@@ -435,4 +435,4 @@
435435
// CHECK-NEW-CPP-NEXT: } // namespace
436436
// CHECK-NEW-CPP-NEXT: } // namespace b
437437

438-
// CHECK-EMPTY: {{^}}{{$}}
438+
// CHECK-CLEAN: {{^}}{{$}}

clang-tools-extra/test/clang-move/no-move-macro-helpers.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
//
3131
// RUN: FileCheck -input-file=%T/no-move-macro-helper/new_test.h -check-prefix=CHECK-NEW-TEST-CASE2-H %s
3232
// RUN: FileCheck -input-file=%T/no-move-macro-helper/new_test.cpp -check-prefix=CHECK-NEW-TEST-CASE2-CPP %s
33-
// RUN: FileCheck -input-file=%T/no-move-macro-helper/macro_helper_test.h -allow-empty -check-prefix=CHECK-EMPTY %s
34-
// RUN: FileCheck -input-file=%T/no-move-macro-helper/macro_helper_test.cpp -allow-empty -check-prefix=CHECK-EMPTY %s
33+
// RUN: FileCheck -input-file=%T/no-move-macro-helper/macro_helper_test.h -allow-empty -check-prefix=CHECK-CLEAN %s
34+
// RUN: FileCheck -input-file=%T/no-move-macro-helper/macro_helper_test.cpp -allow-empty -check-prefix=CHECK-CLEAN %s
3535

3636
// CHECK-NEW-TEST-CASE2-H: class A {};
3737
// CHECK-NEW-TEST-CASE2-H-NEXT:void f1();
@@ -40,4 +40,4 @@
4040
// CHECK-NEW-TEST-CASE2-CPP: DEFINE(test)
4141
// CHECK-NEW-TEST-CASE2-CPP: void f1() {}
4242

43-
// CHECK-EMPTY: {{^}}{{$}}
43+
// CHECK-CLEAN: {{^}}{{$}}

clang/test/CXX/special/class.temporary/p6.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %clang_cc1 -std=c++17 %s -triple x86_64-linux-gnu -emit-llvm -o - | FileCheck %s --implicit-check-not='call{{.*}}dtor'
2-
// RUN: %clang_cc1 -std=c++23 %s -triple x86_64-linux-gnu -emit-llvm -o - | FileCheck %s --check-prefixes=CHECK-CXX23,CHECK-CXX23-NEXT,CHECK-CXX23-LABEL
2+
// RUN: %clang_cc1 -std=c++23 %s -triple x86_64-linux-gnu -emit-llvm -o - | FileCheck %s --check-prefixes=CHECK-CXX23
33

44
namespace std {
55
typedef decltype(sizeof(int)) size_t;

clang/test/CodeCompletion/ignore-ns-level-decls.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ void test() {
1515
// CHECK-1-DAG: COMPLETION: baz : baz
1616
// CHECK-1-DAG: COMPLETION: func : [#int#]func(<#int a#>, <#bar b#>, <#baz c#>)
1717

18-
// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-6):7 -no-code-completion-ns-level-decls %s -o - | FileCheck %s --allow-empty --check-prefix=CHECK-EMPTY
19-
// CHECK-EMPTY-NOT: COMPLETION: bar : bar
20-
// CHECK-EMPTY: {{^}}{{$}}
18+
// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-6):7 -no-code-completion-ns-level-decls %s -o - | FileCheck %s --allow-empty --check-prefix=CHECK-CLEAN
19+
// CHECK-CLEAN-NOT: COMPLETION: bar : bar
20+
// CHECK-CLEAN: {{^}}{{$}}
2121
}

clang/test/CodeGen/thinlto_backend.ll

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
; would not import f2
1717
; RUN: touch %t4.thinlto.bc
1818
; RUN: %clang -target x86_64-unknown-linux-gnu -O2 -o %t4.o -x ir %t1.o -c -fthinlto-index=%t4.thinlto.bc
19-
; RUN: llvm-nm %t4.o | FileCheck --check-prefix=CHECK-OBJ-IGNORE-EMPTY %s
20-
; CHECK-OBJ-IGNORE-EMPTY: T f1
21-
; CHECK-OBJ-IGNORE-EMPTY: U f2
19+
; RUN: llvm-nm %t4.o | FileCheck --check-prefix=CHECK-OBJ-IGNORE-CLEAN %s
20+
; CHECK-OBJ-IGNORE-CLEAN: T f1
21+
; CHECK-OBJ-IGNORE-CLEAN: U f2
2222

2323
; Ensure we don't fail with index and non-ThinLTO object file, and output must
2424
; be empty file.

clang/test/CodeGenObjC/constant-strings.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// REQUIRES: x86-registered-target
22

33
// RUN: %clang_cc1 -triple x86_64-macho -emit-llvm -o %t %s
4-
// RUN: FileCheck --check-prefix=CHECK-NEXT < %t %s
4+
// RUN: FileCheck --check-prefix=CHECK-ALIGN < %t %s
55

66
// Check that we set alignment 1 on the string.
77
//
8-
// CHECK-NEXT: @.str = {{.*}}constant [13 x i8] c"Hello World!\00", section "__TEXT,__cstring,cstring_literals", align 1
8+
// CHECK-ALIGN: @.str = {{.*}}constant [13 x i8] c"Hello World!\00", section "__TEXT,__cstring,cstring_literals", align 1
99

1010
// RUN: %clang_cc1 -triple x86_64-macho -fobjc-runtime=gcc -emit-llvm -o %t %s
1111
// RUN: FileCheck --check-prefix=CHECK-GNU < %t %s

clang/test/Driver/clang_f_opts.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@
190190
// RUN: %clang -### -S -frounding-math %s 2>&1 | FileCheck -check-prefix=CHECK-ROUNDING-MATH %s
191191
// CHECK-ROUNDING-MATH: "-cc1"
192192
// CHECK-ROUNDING-MATH: "-frounding-math"
193-
// CHECK-ROUNDING-MATH-NOT: "-fno-rounding-math"
194-
// RUN: %clang -### -S %s 2>&1 | FileCheck -check-prefix=CHECK-ROUNDING-MATH-NOT %s
193+
// CHECK-NO-ROUNDING-MATH: "-fno-rounding-math"
194+
// RUN: %clang -### -S %s 2>&1 | FileCheck -check-prefix=CHECK-NO-ROUNDING-MATH %s
195195
// RUN: not %clang -### -S -ffp-model=imprecise %s 2>&1 | FileCheck -check-prefix=CHECK-FPMODEL %s
196196
// CHECK-FPMODEL: unsupported argument 'imprecise' to option '-ffp-model='
197197
// RUN: %clang -### -S -ffp-model=precise %s 2>&1 | FileCheck -check-prefix=IGNORE %s

clang/test/Driver/darwin-version.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,9 @@
231231
// CHECK-VERSION-TNO-OSV4: overriding '-miphoneos-version-min=10.1.0.1' option with '-target arm64-apple-ios10.1.0'
232232

233233
// RUN: %clang -target x86_64-apple-macos10.6 -mmacos-version-min=10.6 -c %s -### 2>&1 | \
234-
// RUN: FileCheck --check-prefix=CHECK-VERSION-TNO-SAME %s
235-
// CHECK-VERSION-TNO-SAME-NOT: overriding
236-
// CHECK-VERSION-TNO-SAME-NOT: argument unused during compilation
234+
// RUN: FileCheck --check-prefix=CHECK-VERSION-SAME-TNO %s
235+
// CHECK-VERSION-SAME-TNO-NOT: overriding
236+
// CHECK-VERSION-SAME-TNO-NOT: argument unused during compilation
237237

238238
// Target with OS version is not overridden by -m<os>-version-min variables:
239239

clang/test/Driver/debug-prefix-map.c

+9-9
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
// RUN: %clang -### -ffile-prefix-map=old=n=ew %s 2>&1 | FileCheck %s -check-prefix CHECK-MACRO-COMPLEX
1818
// RUN: %clang -### -ffile-prefix-map=old=n=ew %s 2>&1 | FileCheck %s -check-prefix CHECK-COVERAGE-COMPLEX
1919

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
20+
// RUN: %clang -### -fdebug-prefix-map=old= %s 2>&1 | FileCheck %s -check-prefix CHECK-DEBUG-CLEAN
21+
// RUN: %clang -### -fmacro-prefix-map=old= %s 2>&1 | FileCheck %s -check-prefix CHECK-MACRO-CLEAN
22+
// RUN: %clang -### -fcoverage-prefix-map=old= %s 2>&1 | FileCheck %s -check-prefix CHECK-COVERAGE-CLEAN
23+
// RUN: %clang -### -ffile-prefix-map=old= %s 2>&1 | FileCheck %s -check-prefix CHECK-DEBUG-CLEAN
24+
// RUN: %clang -### -ffile-prefix-map=old= %s 2>&1 | FileCheck %s -check-prefix CHECK-MACRO-CLEAN
25+
// RUN: %clang -### -ffile-prefix-map=old= %s 2>&1 | FileCheck %s -check-prefix CHECK-COVERAGE-CLEAN
2626

2727
// CHECK-DEBUG-INVALID: error: invalid argument 'old' to -fdebug-prefix-map
2828
// CHECK-MACRO-INVALID: error: invalid argument 'old' to -fmacro-prefix-map
@@ -34,6 +34,6 @@
3434
// CHECK-DEBUG-COMPLEX: fdebug-prefix-map=old=n=ew
3535
// CHECK-MACRO-COMPLEX: fmacro-prefix-map=old=n=ew
3636
// 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=
37+
// CHECK-DEBUG-CLEAN: fdebug-prefix-map=old=
38+
// CHECK-MACRO-CLEAN: fmacro-prefix-map=old=
39+
// CHECK-COVERAGE-CLEAN: fcoverage-prefix-map=old=

clang/test/PCH/badpch.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not %clang_cc1 -fsyntax-only -include-pch %S/Inputs/badpch-empty.h.gch %s 2>&1 | FileCheck -check-prefix=CHECK-EMPTY %s
1+
// RUN: not %clang_cc1 -fsyntax-only -include-pch %S/Inputs/badpch-empty.h.gch %s 2>&1 | FileCheck -check-prefix=CHECK-CLEAN %s
22
// RUN: not %clang_cc1 -fsyntax-only -include-pch %S/Inputs/badpch-dir.h.gch %s 2>&1 | FileCheck -check-prefix=CHECK-DIR %s
33

44
// The purpose of this test is to verify that various invalid PCH files are
@@ -9,5 +9,5 @@
99
// message still did not contain the name of the PCH. Also, r149918 which was
1010
// submitted on 2012-02-06 introduced a segfault in the case where the PCH is
1111
// an empty file and clang was built with assertions.
12-
// CHECK-EMPTY: error: input is not a PCH file: '{{.*[/\\]}}badpch-empty.h.gch'
12+
// CHECK-CLEAN: error: input is not a PCH file: '{{.*[/\\]}}badpch-empty.h.gch'
1313
// CHECK-DIR:error: no suitable precompiled header file found in directory '{{.*[/\\]}}badpch-dir.h.gch

lld/test/ELF/debug-names-bad.s

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010

1111
# RUN: sed '/Header: name count/s/[0-9]/4/' %S/Inputs/debug-names-a.s > bad-name-count.s
1212
# RUN: llvm-mc -filetype=obj -triple=x86_64 bad-name-count.s -o bad-name-count.o
13-
# RUN: not ld.lld --debug-names bad-name-count.o 2>&1 | FileCheck %s --check-prefix=BAD-NAME-COUNT --implicit-check-not=error:
13+
# RUN: not ld.lld --debug-names bad-name-count.o 2>&1 | FileCheck %s --check-prefix=BAD-NAME-NUM --implicit-check-not=error:
1414

1515
## Test errors in offsets.
16-
# BAD-NAME-COUNT: error: bad-name-count.o:(.debug_names): Section too small: cannot read abbreviations.
16+
# BAD-NAME-NUM: error: bad-name-count.o:(.debug_names): Section too small: cannot read abbreviations.
1717

1818
# RUN: sed '/Offset in Bucket/s/long/byte/' %S/Inputs/debug-names-a.s > entry-offset-in-byte.s
1919
# RUN: llvm-mc -filetype=obj -triple=x86_64 entry-offset-in-byte.s -o entry-offset-in-byte.o

0 commit comments

Comments
 (0)