clang/test/Lexer/raw-string-dlim-invalid.cpp
raw| 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
| 2 | |
| 3 | // expected-error@+2{{invalid character ')' in raw string delimiter; use PREFIX( )PREFIX to delimit raw string}} |
| 4 | // expected-error@+1{{expected expression}} |
| 5 | char const *str1 = R")"; |
| 6 | |
| 7 | // expected-error@+2{{invalid newline character in raw string delimiter; use PREFIX( )PREFIX to delimit raw string}} |
| 8 | // expected-error@+1{{expected expression}} |
| 9 | char const* str2 = R""; |