bolt/deps/llvm-18.1.8/clang/test/CXX/lex/lex.literal/lex.ext/p9.cpp
2025-02-14 19:21:04 +01:00

13 lines
323 B
C++

// RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s
using size_t = decltype(sizeof(int));
void operator "" _x(const wchar_t *, size_t);
namespace std_example {
int main() {
L"A" "B" "C"_x;
"P"_x "Q" "R"_y; // expected-error {{differing user-defined suffixes ('_x' and '_y') in string literal concatenation}}
}
}