Debian Codegraph @

clang/test/AST/ast-crash-dump-mangled-name-json.m

raw
1 // RUN: not %clang_cc1 -ast-dump=json %s 2>&1 | FileCheck %s
2
3 // Ensure that dumping this does not crash when emitting the mangled name.
4 // See GH137320 for details.
5 // Note, this file does not compile and so we also check the error.
6
7 @interface SomeClass (SomeExtension)
8 + (void)someMethod;
9 @end
10
11 // CHECK: error: cannot find interface declaration for 'SomeClass'
12
13 // CHECK: "name": "someMethod"
14 // CHECK-NEXT: "mangledName": "+[ someMethod]",