
If a macro is defined on the command line and then overridden in the source code, this is likely to be an error in the user's build system. We should warn on this. Reviewed By: thakis Differential Revision: https://reviews.llvm.org/D104008
9 lines
227 B
NASM
9 lines
227 B
NASM
; RUN: llvm-ml -filetype=s %s /Fo - /Dtest1=def 2>&1 | FileCheck %s --implicit-check-not=warning:
|
|
|
|
.code
|
|
|
|
; CHECK: :[[# @LINE + 1]]:1: warning: redefining 'test1', already defined on the command line
|
|
test1 textequ <redef>
|
|
|
|
end
|