Skip to content

Commit 609188c

Browse files
committed
Use --implicit-check-not
1 parent da97931 commit 609188c

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

clang/test/Driver/clang_wrapv_opts.c

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,14 @@
77
// RUN: %clang -### -S -fstrict-overflow -fno-strict-overflow %s 2>&1 | FileCheck -check-prefix=CHECK2 %s
88
// CHECK2: -fwrapv{{.*}}-fwrapv-pointer
99
//
10-
// RUN: %clang -### -S -fwrapv -fstrict-overflow %s 2>&1 | FileCheck -check-prefix=CHECK3 %s
10+
// RUN: %clang -### -S -fwrapv -fstrict-overflow %s 2>&1 | FileCheck -check-prefix=CHECK3 %s --implicit-check-not="-fwrapv-pointer"
1111
// CHECK3: -fwrapv
1212
//
13-
// RUN: %clang -### -S -fwrapv-pointer -fstrict-overflow %s 2>&1 | FileCheck -check-prefix=CHECK3-POINTER %s
13+
// RUN: %clang -### -S -fwrapv-pointer -fstrict-overflow %s 2>&1 | FileCheck -check-prefix=CHECK3-POINTER %s --implicit-check-not="-fwrapv"
1414
// CHECK3-POINTER: -fwrapv-pointer
1515
//
16-
// RUN: %clang -### -S -fno-wrapv -fno-strict-overflow %s 2>&1 | FileCheck -check-prefix=CHECK4 %s
17-
// CHECK4-NOT: -fwrapv
16+
// RUN: %clang -### -S -fno-wrapv -fno-strict-overflow %s 2>&1 | FileCheck -check-prefix=CHECK4 %s --implicit-check-not="-fwrapv"
1817
// CHECK4: -fwrapv-pointer
19-
// CHECK4-NOT: -fwrapv
2018
//
21-
// RUN: %clang -### -S -fno-wrapv-pointer -fno-strict-overflow %s 2>&1 | FileCheck -check-prefix=CHECK4-POINTER %s
22-
// CHECK4-POINTER-NOT: -fwrapv-pointer
19+
// RUN: %clang -### -S -fno-wrapv-pointer -fno-strict-overflow %s 2>&1 | FileCheck -check-prefix=CHECK4-POINTER %s --implicit-check-not="-fwrapv-pointer"
2320
// CHECK4-POINTER: -fwrapv
24-
// CHECK4-POINTER-NOT: -fwrapv-pointer

0 commit comments

Comments
 (0)