1# llvm-symbolizer infers the number base from the form of the address. 2RUN: llvm-symbolizer -e /dev/null -a 0x1234 | FileCheck %s 3RUN: llvm-symbolizer -e /dev/null -a 0X1234 | FileCheck %s 4RUN: llvm-symbolizer -e /dev/null -a 4660 | FileCheck %s 5RUN: llvm-symbolizer -e /dev/null -a 011064 | FileCheck %s 6RUN: llvm-symbolizer -e /dev/null -a 0b1001000110100 | FileCheck %s 7RUN: llvm-symbolizer -e /dev/null -a 0B1001000110100 | FileCheck %s 8RUN: llvm-symbolizer -e /dev/null -a 0o11064 | FileCheck %s 9 10# llvm-symbolizer / StringRef::getAsInteger only accepts the 0o prefix in lowercase. 11RUN: llvm-symbolizer -e /dev/null -a 0O1234 | FileCheck %s --check-prefix=INVALID-NOT-OCTAL-UPPER 12 13# llvm-addr2line always requires hexadecimal, but accepts an optional 0x prefix. 14RUN: llvm-addr2line -e /dev/null -a 0x1234 | FileCheck %s 15RUN: llvm-addr2line -e /dev/null -a 0X1234 | FileCheck %s 16RUN: llvm-addr2line -e /dev/null -a 1234 | FileCheck %s 17RUN: llvm-addr2line -e /dev/null -a 01234 | FileCheck %s 18RUN: llvm-addr2line -e /dev/null -a 0b1010 | FileCheck %s --check-prefix=HEXADECIMAL-NOT-BINARY 19RUN: llvm-addr2line -e /dev/null -a 0B1010 | FileCheck %s --check-prefix=HEXADECIMAL-NOT-BINARY 20RUN: llvm-addr2line -e /dev/null -a 0o1234 | FileCheck %s --check-prefix=INVALID-NOT-OCTAL-LOWER 21RUN: llvm-addr2line -e /dev/null -a 0O1234 | FileCheck %s --check-prefix=INVALID-NOT-OCTAL-UPPER 22 23CHECK: 0x1234 24CHECK-NEXT: ?? 25 26HEXADECIMAL-NOT-BINARY: 0xb1010 27HEXADECIMAL-NOT-BINARY: ?? 28 29INVALID-NOT-OCTAL-LOWER: 0o1234 30INVALID-NOT-OCTAL-LOWER-NOT: ?? 31 32INVALID-NOT-OCTAL-UPPER: 0O1234 33INVALID-NOT-OCTAL-UPPER-NOT: ?? 34