mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-28 12:16:09 +00:00

grammar requires a string-literal and not a user-defined-string-literal. The two constructs are still represented by the same TokenKind, in order to prevent a combinatorial explosion of different kinds of token. A flag on Token tracks whether a ud-suffix is present, in order to prevent clients from needing to look at the token's spelling. llvm-svn: 152098
4 lines
136 B
Plaintext
4 lines
136 B
Plaintext
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
|
|
|
|
id x = @"foo"_bar; // expected-error{{user-defined suffix cannot be used here}}
|