aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJon Burgess <jburgess777@gmail.com>2018-10-28 14:49:09 +0000
committerJon Burgess <jburgess777@gmail.com>2018-10-28 14:57:04 +0000
commit6732e566321b828c83b563d24a10ac31c6d03e28 (patch)
tree20b999fa4b614f5c72defc8420e53ac96acb3e62 /tests
parentdb676957a0c3032ff44e3195d770948c1c3660af (diff)
downloadyosys-6732e566321b828c83b563d24a10ac31c6d03e28.tar.gz
yosys-6732e566321b828c83b563d24a10ac31c6d03e28.tar.bz2
yosys-6732e566321b828c83b563d24a10ac31c6d03e28.zip
Avoid assert when label is an empty string
Calling back() on an empty string is not allowed and triggers an assert with recent gcc: $ cd manual/PRESENTATION_Intro $ ../../yosys counter.ys ... /usr/include/c++/8/bits/basic_string.h:1136: std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reference std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::back() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reference = char&]: Assertion '!empty()' failed. 802 if (label.back() == ':' && GetSize(label) > 1) (gdb) p label $1 = ""
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions