mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-18 19:06:44 +00:00
[llvm-size] Add test for invalid conversion spec on error (#128941)
Follow up to #128447.
This commit is contained in:
parent
494f67282f
commit
b8337bc512
@ -109,19 +109,20 @@
|
||||
|
||||
## Case 9: Bad values.
|
||||
# RUN: not llvm-size %t1.o --radix=0 2>&1 \
|
||||
# RUN: | FileCheck %s --check-prefix=BAD-VAL -DNUM=0
|
||||
# RUN: | FileCheck %s --check-prefix=BAD-VAL -DFILE1=%t1.o -DNUM=0
|
||||
# RUN: not llvm-size %t1.o --radix=1 2>&1 \
|
||||
# RUN: | FileCheck %s --check-prefix=BAD-VAL -DNUM=1
|
||||
# RUN: | FileCheck %s --check-prefix=BAD-VAL -DFILE1=%t1.o -DNUM=1
|
||||
# RUN: not llvm-size %t1.o --radix=2 2>&1 \
|
||||
# RUN: | FileCheck %s --check-prefix=BAD-VAL -DNUM=2
|
||||
# RUN: | FileCheck %s --check-prefix=BAD-VAL -DFILE1=%t1.o -DNUM=2
|
||||
# RUN: not llvm-size %t1.o --radix=32 2>&1 \
|
||||
# RUN: | FileCheck %s --check-prefix=BAD-VAL -DNUM=32
|
||||
# RUN: | FileCheck %s --check-prefix=BAD-VAL -DFILE1=%t1.o -DNUM=32
|
||||
# RUN: not llvm-size %t1.o --radix=-1 2>&1 \
|
||||
# RUN: | FileCheck %s --check-prefix=BAD-VAL -DNUM=-1
|
||||
# RUN: | FileCheck %s --check-prefix=BAD-VAL -DFILE1=%t1.o -DNUM=-1
|
||||
# RUN: not llvm-size %t1.o --radix=bad 2>&1 \
|
||||
# RUN: | FileCheck %s --check-prefix=BAD-VAL -DNUM=bad
|
||||
# RUN: | FileCheck %s --check-prefix=BAD-VAL -DFILE1=%t1.o -DNUM=bad
|
||||
|
||||
# BAD-VAL: {{.*}}llvm-size{{.*}}: error: --radix value should be one of: 8, 10, 16
|
||||
# BAD-VAL: 1 2 4 7 7 [[FILE1]]
|
||||
|
||||
--- !ELF
|
||||
FileHeader:
|
||||
|
Loading…
x
Reference in New Issue
Block a user