Alexander Kornienko | c58b079 | 2014-07-11 12:39:32 +0000 | [diff] [blame] | 1 | ; RUN: sed 's#^;.*##' %s | FileCheck -check-prefix=CHECK-PASS -implicit-check-not=warning: %s |
| 2 | ; RUN: sed 's#^;.*##' %s | not FileCheck -check-prefix=CHECK-FAIL1 -implicit-check-not=warning: %s 2>&1 | FileCheck %s -check-prefix CHECK-ERROR1 |
| 3 | ; RUN: sed 's#^;.*##' %s | not FileCheck -check-prefix=CHECK-FAIL2 -implicit-check-not=warning: %s 2>&1 | FileCheck %s -check-prefix CHECK-ERROR2 |
| 4 | ; RUN: sed 's#^;.*##' %s | not FileCheck -check-prefix=CHECK-FAIL3 -implicit-check-not=warning: %s 2>&1 | FileCheck %s -check-prefix CHECK-ERROR3 |
| 5 | ; RUN: sed 's#^;.*##' %s | not FileCheck -check-prefix=CHECK-FAIL1 -implicit-check-not='{{aaa|bbb|ccc}}' %s 2>&1 | FileCheck %s -check-prefix CHECK-ERROR4 |
| 6 | ; RUN: sed 's#^;.*##' %s | not FileCheck -check-prefix=CHECK-FAIL1 -implicit-check-not=aaa -implicit-check-not=bbb -implicit-check-not=ccc %s 2>&1 | FileCheck %s -check-prefix CHECK-ERROR5 |
| 7 | ; RUN: sed 's#^;.*##' %s | not FileCheck -check-prefix=CHECK-FAIL2 -implicit-check-not=aaa -implicit-check-not=bbb -implicit-check-not=ccc %s 2>&1 | FileCheck %s -check-prefix CHECK-ERROR6 |
| 8 | ; RUN: sed 's#^;.*##' %s | not FileCheck -check-prefix=CHECK-FAIL3 -implicit-check-not=aaa -implicit-check-not=bbb -implicit-check-not=ccc %s 2>&1 | FileCheck %s -check-prefix CHECK-ERROR7 |
| 9 | |
| 10 | warning: aaa |
| 11 | ; CHECK-PASS: warning: aaa |
Joel E. Denny | 9074a87 | 2018-07-13 03:08:23 +0000 | [diff] [blame] | 12 | ; CHECK-ERROR1: command line:1:22: error: CHECK-FAIL1-NOT: excluded string found in input |
Alexander Kornienko | c58b079 | 2014-07-11 12:39:32 +0000 | [diff] [blame] | 13 | ; CHECK-ERROR1-NEXT: -implicit-check-not='warning:' |
Joel E. Denny | 9074a87 | 2018-07-13 03:08:23 +0000 | [diff] [blame] | 14 | ; CHECK-ERROR1: note: found here |
Alexander Kornienko | c58b079 | 2014-07-11 12:39:32 +0000 | [diff] [blame] | 15 | ; CHECK-FAIL2: warning: aaa |
| 16 | ; CHECK-FAIL3: warning: aaa |
Joel E. Denny | 9074a87 | 2018-07-13 03:08:23 +0000 | [diff] [blame] | 17 | ; CHECK-ERROR4: command line:1:22: error: CHECK-FAIL1-NOT: excluded string found in input |
Alexander Kornienko | c58b079 | 2014-07-11 12:39:32 +0000 | [diff] [blame] | 18 | ; CHECK-ERROR4-NEXT: {{-implicit-check-not='\{\{aaa\|bbb\|ccc\}\}'}} |
Joel E. Denny | 9074a87 | 2018-07-13 03:08:23 +0000 | [diff] [blame] | 19 | ; CHECK-ERROR4: note: found here |
| 20 | ; CHECK-ERROR5: command line:1:22: error: CHECK-FAIL1-NOT: excluded string found in input |
Alexander Kornienko | c58b079 | 2014-07-11 12:39:32 +0000 | [diff] [blame] | 21 | ; CHECK-ERROR5-NEXT: -implicit-check-not='aaa' |
Joel E. Denny | 9074a87 | 2018-07-13 03:08:23 +0000 | [diff] [blame] | 22 | ; CHECK-ERROR5: note: found here |
Alexander Kornienko | c58b079 | 2014-07-11 12:39:32 +0000 | [diff] [blame] | 23 | |
| 24 | warning: bbb |
| 25 | ; CHECK-PASS: warning: bbb |
| 26 | ; CHECK-FAIL1: warning: bbb |
Joel E. Denny | 9074a87 | 2018-07-13 03:08:23 +0000 | [diff] [blame] | 27 | ; CHECK-ERROR2: command line:1:22: error: CHECK-FAIL2-NOT: excluded string found in input |
Alexander Kornienko | c58b079 | 2014-07-11 12:39:32 +0000 | [diff] [blame] | 28 | ; CHECK-ERROR2-NEXT: -implicit-check-not='warning:' |
Joel E. Denny | 9074a87 | 2018-07-13 03:08:23 +0000 | [diff] [blame] | 29 | ; CHECK-ERROR2: note: found here |
Alexander Kornienko | c58b079 | 2014-07-11 12:39:32 +0000 | [diff] [blame] | 30 | ; CHECK-FAIL3: warning: bbb |
Joel E. Denny | 9074a87 | 2018-07-13 03:08:23 +0000 | [diff] [blame] | 31 | ; CHECK-ERROR6: command line:1:22: error: CHECK-FAIL2-NOT: excluded string found in input |
Alexander Kornienko | c58b079 | 2014-07-11 12:39:32 +0000 | [diff] [blame] | 32 | ; CHECK-ERROR6-NEXT: -implicit-check-not='bbb' |
Joel E. Denny | 9074a87 | 2018-07-13 03:08:23 +0000 | [diff] [blame] | 33 | ; CHECK-ERROR6: note: found here |
Alexander Kornienko | c58b079 | 2014-07-11 12:39:32 +0000 | [diff] [blame] | 34 | |
| 35 | warning: ccc |
| 36 | ; CHECK-PASS: warning: ccc |
| 37 | ; CHECK-FAIL1: warning: ccc |
| 38 | ; CHECK-FAIL2: warning: ccc |
Joel E. Denny | 9074a87 | 2018-07-13 03:08:23 +0000 | [diff] [blame] | 39 | ; CHECK-ERROR3: command line:1:22: error: CHECK-FAIL3-NOT: excluded string found in input |
Alexander Kornienko | c58b079 | 2014-07-11 12:39:32 +0000 | [diff] [blame] | 40 | ; CHECK-ERROR3-NEXT: -implicit-check-not='warning:' |
Joel E. Denny | 9074a87 | 2018-07-13 03:08:23 +0000 | [diff] [blame] | 41 | ; CHECK-ERROR3: note: found here |
| 42 | ; CHECK-ERROR7: command line:1:22: error: CHECK-FAIL3-NOT: excluded string found in input |
Alexander Kornienko | c58b079 | 2014-07-11 12:39:32 +0000 | [diff] [blame] | 43 | ; CHECK-ERROR7-NEXT: -implicit-check-not='ccc' |
Joel E. Denny | 9074a87 | 2018-07-13 03:08:23 +0000 | [diff] [blame] | 44 | ; CHECK-ERROR7: note: found here |