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