2018-12-15 01:59:27 +08:00
|
|
|
; 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
|
2018-12-15 02:10:13 +08:00
|
|
|
|
|
|
|
?f0@@YAXPEU?$AS_@$00$$CAD@__clang@@@Z
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ?f0@@YAXPEU?$AS_@$00$$CAD@__clang@@@Z
|
2019-04-04 07:15:56 +08:00
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
|
|
|
|
|
|
|
?@@8
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ?@@8
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
2019-04-04 07:19:39 +08:00
|
|
|
|
|
|
|
??
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ??
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
2019-04-04 07:23:32 +08:00
|
|
|
|
|
|
|
??0@
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ??0@
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
2019-04-04 07:27:18 +08:00
|
|
|
|
|
|
|
? @@ YC@
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ? @@ YC@
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
2019-04-09 03:46:53 +08:00
|
|
|
|
|
|
|
??B@$$J0
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ??B@$$J0
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
|
|
|
|
|
|
|
??B@4
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ??B@4
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
|
|
|
|
|
|
|
?A?@?@???B@4D
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ?A?@?@???B@4D
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
|
|
|
|
|
|
|
?A?@?@???B@4DD
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ?A?@?@???B@4DD
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
|
|
|
|
|
|
|
??$A@P15@
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ??$A@P15@
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
|
|
|
|
|
|
|
??$A@P
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ??$A@P
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
|
|
|
|
|
|
|
?A@@
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ?A@@
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
|
|
|
|
|
|
|
?A@@P
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ?A@@P
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
|
|
|
|
|
|
|
?A@@4PQA@@
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ?A@@4PQA@@
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
|
|
|
|
|
|
|
??__E
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ??__E
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
|
|
|
|
|
|
|
??__E@@
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ??__E@@
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
|
|
|
|
|
|
|
??__E?Foo@@0HA@@
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ??__E?Foo@@0HA@@
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
2019-04-11 01:31:34 +08:00
|
|
|
|
|
|
|
??8@8
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ??8@8
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
2019-04-12 06:23:35 +08:00
|
|
|
|
|
|
|
?B@?$?K$H?
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ?B@?$?K$H?
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
2019-04-12 06:47:18 +08:00
|
|
|
|
|
|
|
??C@$
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ??C@$
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
2019-04-12 06:59:25 +08:00
|
|
|
|
|
|
|
?x@@3PAW
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ?x@@3PAW
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
2019-04-12 07:11:33 +08:00
|
|
|
|
|
|
|
??}
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ??}
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|