(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
cpp/
warn-normalized-4-bytes.c
       1  // { dg-do preprocess }
       2  // { dg-options "-std=gnu99 -Werror=normalized=nfc -fdiagnostics-show-caret -fdiagnostics-escape-format=bytes" }
       3  /* { dg-message "some warnings being treated as errors" "" {target "*-*-*"} 0 } */
       4  
       5  /* གྷ = U+0F43 TIBETAN LETTER GHA, which has decomposition "0F42 0FB7" i.e.
       6     U+0F42 TIBETAN LETTER GA: ག
       7     U+0FB7 TIBETAN SUBJOINED LETTER HA: ྷ
       8  
       9     The UTF-8 encoding of U+0F43 TIBETAN LETTER GHA is: E0 BD 83.  */
      10  
      11  foo before_\u0F43_after bar // { dg-error "`before_.U00000f43_after' is not in NFC .-Werror=normalized=." }
      12  /* { dg-begin-multiline-output "" }
      13   foo before_\u0F43_after bar
      14       ^~~~~~~~~~~~~~~~~~~
      15     { dg-end-multiline-output "" } */
      16  
      17  foo before_གྷ_after bar // { dg-error "`before_.U00000f43_after' is not in NFC .-Werror=normalized=." }
      18  /* { dg-begin-multiline-output "" }
      19   foo before_<e0><bd><83>_after bar
      20       ^~~~~~~~~~~~~~~~~~~~~~~~~
      21     { dg-end-multiline-output "" } */