mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
0a0be9b76e
Once we detect a 'P', we know we a pointer type is upcoming, so we make some assumptions about the output that follows. If those assumptions didn't hold, we would assert. Instead, we should fail gracefully and propagate the error up. llvm-svn: 349169
11 lines
439 B
Plaintext
11 lines
439 B
Plaintext
; Run llvm-undname with invalid inputs and make sure it doesn't crash.
|
|
; RUN: llvm-undname < %s 2>&1 | FileCheck %s
|
|
|
|
?ff@@$$J0YAXAU?$AS_@$0A@PEAU?$AS_@$0A@H@__clang@@@__clang@@@Z
|
|
; CHECK: ?ff@@$$J0YAXAU?$AS_@$0A@PEAU?$AS_@$0A@H@__clang@@@__clang@@@Z
|
|
; CHECK-NEXT: error: Invalid mangled name
|
|
|
|
?f0@@YAXPEU?$AS_@$00$$CAD@__clang@@@Z
|
|
; CHECK-EMPTY:
|
|
; CHECK-NEXT: ?f0@@YAXPEU?$AS_@$00$$CAD@__clang@@@Z
|
|
; CHECK-NEXT: error: Invalid mangled name |