Test [[ and ]] in string literal are preserved
Suggested by wsfulton in #1158
This commit is contained in:
parent
d3759a9b36
commit
5ddcbac56b
2 changed files with 16 additions and 0 deletions
|
|
@ -38,4 +38,6 @@ bool maybeUnused2(bool a, [[maybe_unused]] bool b) { return a; }
|
|||
|
||||
struct [[nodiscard]] S { };
|
||||
|
||||
const char *test_string_literal() { return "Test [[ and ]] in string literal"; }
|
||||
|
||||
%}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue