llvm-project/clang/test/Parser/objcxx11-user-defined-literal.mm
Richard Smith d67aea28f6 User-defined literals: reject string and character UDLs in all places where the
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
2012-03-06 03:21:47 +00:00

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}}