implicit-check-not.txt 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. warning: aaa
  10. ; CHECK-PASS: warning: aaa
  11. ; CHECK-ERROR1: error: CHECK-FAIL1-NOT: string occurred!
  12. ; CHECK-ERROR1: command line:1:22: note: CHECK-FAIL1-NOT: pattern specified here
  13. ; CHECK-ERROR1-NEXT: -implicit-check-not='warning:'
  14. ; CHECK-FAIL2: warning: aaa
  15. ; CHECK-FAIL3: warning: aaa
  16. ; CHECK-ERROR4: error: CHECK-FAIL1-NOT: string occurred!
  17. ; CHECK-ERROR4: command line:1:22: note: CHECK-FAIL1-NOT: pattern specified here
  18. ; CHECK-ERROR4-NEXT: {{-implicit-check-not='\{\{aaa\|bbb\|ccc\}\}'}}
  19. ; CHECK-ERROR5: error: CHECK-FAIL1-NOT: string occurred!
  20. ; CHECK-ERROR5: command line:1:22: note: CHECK-FAIL1-NOT: pattern specified here
  21. ; CHECK-ERROR5-NEXT: -implicit-check-not='aaa'
  22. warning: bbb
  23. ; CHECK-PASS: warning: bbb
  24. ; CHECK-FAIL1: warning: bbb
  25. ; CHECK-ERROR2: error: CHECK-FAIL2-NOT: string occurred!
  26. ; CHECK-ERROR2: command line:1:22: note: CHECK-FAIL2-NOT: pattern specified here
  27. ; CHECK-ERROR2-NEXT: -implicit-check-not='warning:'
  28. ; CHECK-FAIL3: warning: bbb
  29. ; CHECK-ERROR6: error: CHECK-FAIL2-NOT: string occurred!
  30. ; CHECK-ERROR6: command line:1:22: note: CHECK-FAIL2-NOT: pattern specified here
  31. ; CHECK-ERROR6-NEXT: -implicit-check-not='bbb'
  32. warning: ccc
  33. ; CHECK-PASS: warning: ccc
  34. ; CHECK-FAIL1: warning: ccc
  35. ; CHECK-FAIL2: warning: ccc
  36. ; CHECK-ERROR3: error: CHECK-FAIL3-NOT: string occurred!
  37. ; CHECK-ERROR3: command line:1:22: note: CHECK-FAIL3-NOT: pattern specified here
  38. ; CHECK-ERROR3-NEXT: -implicit-check-not='warning:'
  39. ; CHECK-ERROR7: error: CHECK-FAIL3-NOT: string occurred!
  40. ; CHECK-ERROR7: command line:1:22: note: CHECK-FAIL3-NOT: pattern specified here
  41. ; CHECK-ERROR7-NEXT: -implicit-check-not='ccc'