diff options
author | Sanne Wouda <sanne.wouda@arm.com> | 2017-04-07 10:13:00 +0000 |
---|---|---|
committer | Sanne Wouda <sanne.wouda@arm.com> | 2017-04-07 10:13:00 +0000 |
commit | 26d41bffe2da8282ce4116b7251568380c8b2ffb (patch) | |
tree | 788b1edaefadc195034db8e2fccf6c6b7174eeff /test/Lexer | |
parent | e7bf9bd23e5ab5ae3f79d88d3e8956f0067fc683 (diff) |
Skip Unicode character expansion in assembly files
Summary: When using the C preprocessor with assembly files, either with a
capital `S` file extension, or with `-xassembler-with-cpp`, the Unicode escape
sequence `\u` is ignored. The `\u` pattern can be used for expanding a macro
argument that starts with `u`.
Author: Salman Arif <salman.arif@arm.com>
Reviewers: rengolin, olista01
Reviewed By: olista01
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D31765
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@299754 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Lexer')
-rw-r--r-- | test/Lexer/asm-preproc-no-unicode.s | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Lexer/asm-preproc-no-unicode.s b/test/Lexer/asm-preproc-no-unicode.s new file mode 100644 index 0000000000..d194a52fec --- /dev/null +++ b/test/Lexer/asm-preproc-no-unicode.s @@ -0,0 +1,8 @@ +// RUN: %clang -E -xassembler-with-cpp %s -o - 2>&1 | FileCheck %s + +// CHECK-NOT: warning: \u used with no following hex digits +// CHECK: .word \u + + .macro foo, u + .word \u + .endm |