diff options
author | matevos <matevosmehrabyan@gmail.com> | 2023-01-13 14:55:01 +0400 |
---|---|---|
committer | Jeff Law <jlaw@ventanamicro> | 2023-03-21 09:03:21 -0600 |
commit | d93a1f6dff24a7a9bfe89cec62ebcc1de4931e83 (patch) | |
tree | 6d293aa7e5963d5b9946709865cb42c178dfade1 /gcc/testsuite/gcc.dg/crc-7.c | |
parent | 483e48ae4fa536db3141fc95bde39deb8725ca5a (diff) | |
download | gcc-d93a1f6dff24a7a9bfe89cec62ebcc1de4931e83.zip gcc-d93a1f6dff24a7a9bfe89cec62ebcc1de4931e83.tar.gz gcc-d93a1f6dff24a7a9bfe89cec62ebcc1de4931e83.tar.bz2 |
sym-exec v13 - Some code refactored - Fixed memory leaks - Added checks for return value and polynomials in crc-* tests
Diffstat (limited to 'gcc/testsuite/gcc.dg/crc-7.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/crc-7.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/crc-7.c b/gcc/testsuite/gcc.dg/crc-7.c index d042a0b..4c58145 100644 --- a/gcc/testsuite/gcc.dg/crc-7.c +++ b/gcc/testsuite/gcc.dg/crc-7.c @@ -21,4 +21,7 @@ uint16_t crc_xmodem_update(uint16_t crc, uint8_t data) { /* { dg-final { scan-tree-dump "Bit forward" "crc"} } */ /* { dg-final { scan-tree-dump "Executing \[a-zA-Z_\]\[a-zA-Z0-9_\]* = \[a-zA-Z_\]\[a-zA-Z0-9_\]* \\\^ \[a-zA-Z0-9_\]+\(\\\(\[a-zA-Z\]\\\)\)?;" "crc" } } */ /* { dg-final { scan-tree-dump "Executing \[a-zA-Z_\]\[a-zA-Z0-9_\]* = \[a-zA-Z_\]\[a-zA-Z0-9_\]* \(<<|>>\) \[0-9]+;" "crc" } } */ -/* { dg-final { scan-tree-dump "crc_xmodem_update function calculates CRC!" "crc"} } */
\ No newline at end of file +/* { dg-final { scan-tree-dump "crc_xmodem_update function calculates CRC!" "crc"} } */ +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