mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-28 07:49:01 -04:00

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 llvm-svn: 299754
9 lines
193 B
ArmAsm
9 lines
193 B
ArmAsm
// 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
|