Home | History | Annotate | Download | only in FileCheck
      1 // RUN: not FileCheck -match-full-lines -input-file %s %s  2>&1 \
      2 // RUN:   | FileCheck --check-prefix=ERROR --implicit-check-not=error: %s
      3 // RUN: not FileCheck -match-full-lines -strict-whitespace -input-file %s %s  2>&1 \
      4 // RUN:   | FileCheck --check-prefix=ERROR-STRICT --check-prefix=ERROR --implicit-check-not=error: %s
      5 
      6 Label 1
      7 a line
      8 trailing whitespace   
      9 trailing more whitespace   
     10 Label 2
     11 a line
     12    leading whitespace
     13    leading more whitespace
     14 
     15 Label 3
     16 a line
     17 
     18 Label 4
     19 a line
     20 a random thing
     21 
     22 Label 5
     23 Label 66
     24 
     25 // CHECK-LABEL:Label 1
     26 // CHECK:a line
     27 // CHECK:trailing whitespace
     28 // CHECK:trailing more whitespace   
     29 // ERROR-STRICT:error: {{C}}HECK: expected string not found in input
     30 // ERROR-STRICT:// {{C}}HECK:trailing whitespace
     31 
     32 // CHECK-LABEL:Label 2
     33 // CHECK:a line
     34 // CHECK-NEXT:leading whitespace
     35 // CHECK-NEXT:   leading more whitespace
     36 // ERROR-STRICT:error: {{C}}HECK-NEXT: expected string not found in input
     37 // ERROR-STRICT:// {{C}}HECK-NEXT:leading whitespace
     38 
     39 // CHECK-LABEL:Label 3
     40 // CHECK:line
     41 // ERROR:error: {{C}}HECK: expected string not found in input
     42 // ERROR:// {{C}}HECK:line
     43 
     44 // CHECK-LABEL:Label 4
     45 // CHECK:a line
     46 // CHECK-NOT:random
     47 // ERROR:error: {{C}}HECK-NOT: excluded string found in input
     48 // ERROR:a random thing
     49 
     50 // CHECK-LABEL:Label 5
     51 // CHECK-LABEL:Label 6
     52 // ERROR:error: {{C}}HECK-LABEL: expected string not found in input
     53 // ERROR:{{C}}HECK-LABEL:Label 6
     54