Fix seg fault parsing unterminated raw string literals

This commit is contained in:
William S Fulton 2017-02-09 22:00:04 +00:00
commit dee6b075a8
3 changed files with 10 additions and 0 deletions

View file

@ -0,0 +1,4 @@
%module xxx
%feature("docstring") func2 R"ABC(Calculate :math:`D^\nu \rho(x)`.)AB";
void func2(double* foo, int bar, char** baz);

View file

@ -0,0 +1,2 @@
cpp_raw_string_termination.i:3: Error: Unterminated raw string, started with R"ABC( is not terminated by )ABC"
cpp_raw_string_termination.i:3: Error: Syntax error in input(1).