2018-12-14 18:59:27 +01:00
|
|
|
; Run llvm-undname with invalid inputs and make sure it doesn't crash.
|
2019-04-16 15:18:51 +02:00
|
|
|
; RUN: not llvm-undname < %s 2>&1 | FileCheck %s
|
2018-12-14 18:59:27 +01:00
|
|
|
|
|
|
|
?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-14 19:10:13 +01:00
|
|
|
|
|
|
|
?f0@@YAXPEU?$AS_@$00$$CAD@__clang@@@Z
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ?f0@@YAXPEU?$AS_@$00$$CAD@__clang@@@Z
|
2019-04-04 01:15:56 +02:00
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
|
|
|
|
|
|
|
?@@8
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ?@@8
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
2019-04-04 01:19:39 +02:00
|
|
|
|
|
|
|
??
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ??
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
2019-04-04 01:23:32 +02:00
|
|
|
|
|
|
|
??0@
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ??0@
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
2019-04-04 01:27:18 +02:00
|
|
|
|
|
|
|
? @@ YC@
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ? @@ YC@
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
2019-04-08 21:46:53 +02: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-10 19:31:34 +02:00
|
|
|
|
|
|
|
??8@8
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ??8@8
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
2019-04-12 00:23:35 +02:00
|
|
|
|
|
|
|
?B@?$?K$H?
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ?B@?$?K$H?
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
2019-04-12 00:47:18 +02:00
|
|
|
|
|
|
|
??C@$
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ??C@$
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
2019-04-12 00:59:25 +02:00
|
|
|
|
|
|
|
?x@@3PAW
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ?x@@3PAW
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
2019-04-12 01:11:33 +02:00
|
|
|
|
|
|
|
??}
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ??}
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
2019-04-15 01:08:12 +02:00
|
|
|
|
|
|
|
?foo@?$?_
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ?foo@?$?_
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
2019-04-15 01:32:37 +02:00
|
|
|
|
|
|
|
??_R4
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ??_R4
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
|
|
|
|
|
|
|
??_R4foo@@
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ??_R4foo@@
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
2019-04-15 18:42:44 +02:00
|
|
|
|
|
|
|
?foo@?$?BH@@QAEHXZ
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ?foo@?$?BH@@QAEHXZ
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
2019-04-16 16:10:34 +02:00
|
|
|
|
|
|
|
?foo@?$?0H@
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ?foo@?$?0H@
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
2019-04-18 21:30:21 +02:00
|
|
|
|
|
|
|
??_C@_0A@01234567@a
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ??_C@_0A@01234567@a
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
|
|
|
|
|
|
|
??_C@_1A@01234567@a
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ??_C@_1A@01234567@a
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
2019-04-18 21:52:32 +02:00
|
|
|
|
|
|
|
??_C@_0301234567@a
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ??_C@_0301234567@a
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
|
|
|
|
|
|
|
??_C@_1301234567@a
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ??_C@_1301234567@a
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
2019-04-21 16:25:07 +02:00
|
|
|
|
|
|
|
??_C@_0601234567@abcdefghijklmnopqrtsuvwxyzABCDEFGHIJKLMNOPQRTSUVWXYZabcdefghijklmnopqrtsuvwxyzABCDEFGHIJKLMNOPQRTSUVWXYZabcdefghijklmnopqrtsuvwxyz
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ??_C@_0601234567@abcdefghijklmnopqrtsuvwxyzABCDEFGHIJKLMNOPQRTSUVWXYZabcdefghijklmnopqrtsuvwxyzABCDEFGHIJKLMNOPQRTSUVWXYZabcdefghijklmnopqrtsuvwxyz
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
2019-04-22 17:05:18 +02:00
|
|
|
|
|
|
|
??_C@_12@?z
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ??_C@_12@?z
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
2019-05-22 17:53:23 +02:00
|
|
|
|
|
|
|
??$foo@$1??_C@_02PCEFGMJL@hi?$AA@@
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ??$foo@$1??_C@_02PCEFGMJL@hi?$AA@@
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
2019-06-03 01:48:28 +02:00
|
|
|
|
|
|
|
??_C@
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ??_C@
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
|
|
|
|
|
|
|
??_C@_
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ??_C@_
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
|
|
|
|
|
|
|
??_C@_3
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ??_C@_3
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
|
|
|
|
|
|
|
??_C@_01
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ??_C@_01
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
|
|
|
|
|
|
|
??_C@_0101234567@
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ??_C@_0101234567@
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
|
|
|
|
|
|
|
??_C@_0101234567@?
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ??_C@_0101234567@?
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
|
|
|
|
|
|
|
??_C@_0101234567@?$
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ??_C@_0101234567@?$
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
|
|
|
|
|
|
|
??_C@_0101234567@?$za
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ??_C@_0101234567@?$za
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
|
|
|
|
|
|
|
??_C@_0101234567@?$az
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ??_C@_0101234567@?$az
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
|
|
|
|
2019-06-04 17:13:30 +02:00
|
|
|
??_C@_1201234567@a?$az
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ??_C@_1201234567@a?$az
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
|
|
|
|
2019-06-03 01:48:28 +02:00
|
|
|
??@foo
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ??@foo
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
2019-06-04 17:13:30 +02:00
|
|
|
|
|
|
|
?foo@@3YA@A
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ?foo@@3YA@A
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
|
|
|
|
|
|
|
?foo@@3Y~01KA
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ?foo@@3Y~01KA
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
|
|
|
|
|
|
|
?foo@@3Y0~1KA
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ?foo@@3Y0~1KA
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
|
|
|
|
|
|
|
?x@@3PEAY02$$CRHEA
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ?x@@3PEAY02$$CRHEA
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
2019-06-04 17:38:00 +02:00
|
|
|
|
|
|
|
?foo@@3_
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ?foo@@3_
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
|
|
|
|
|
|
|
?foo@@3_XA
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ?foo@@3_XA
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
|
|
|
|
|
|
|
?foo@@3Vbar
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ?foo@@3Vbar
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
|
|
|
|
|
|
|
?foo@@3Vbar@
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ?foo@@3Vbar@
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
|
|
|
|
|
|
|
?foo@?A
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ?foo@?A
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
2019-06-04 17:47:25 +02:00
|
|
|
|
|
|
|
?foo@?
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ?foo@?
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
|
|
|
|
|
|
|
?foo@??
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ?foo@??
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
|
|
|
|
|
|
|
?foo@?XX?
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ?foo@?XX?
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
|
|
|
|
|
|
|
?foo@?A@?
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ?foo@?A@?
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
|
|
|
|
|
|
|
?foo@?Q@?
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ?foo@?Q@?
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
|
|
|
|
|
|
|
?foo@?BQ@?
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ?foo@?BQ@?
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|
|
|
|
|
|
|
|
?foo@?0?
|
|
|
|
; CHECK-EMPTY:
|
|
|
|
; CHECK-NEXT: ?foo@?0?
|
|
|
|
; CHECK-NEXT: error: Invalid mangled name
|