xref: /aosp_15_r20/external/clang/test/Index/fix-its.m (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li// RUN: c-index-test -test-load-source all %s -Wno-objc-root-class > %t 2>&1
2*67e74705SXin Li// RUN: FileCheck -input-file=%t %s
3*67e74705SXin Li
4*67e74705SXin Li@class NSString;
5*67e74705SXin Livoid _rdar_12584554_A (volatile const void * object, volatile const void * selector, const char * functionName, const char * fileName, unsigned int lineNumber, NSString * msgFormat, ...);
6*67e74705SXin Li#define _rdar_12584554_B(self,_format_and_args_...) \
7*67e74705SXin Li    do{ _rdar_12584554_A(&self,&_cmd,__PRETTY_FUNCTION__,__FILE__,__LINE__, _format_and_args_); }while(0)
8*67e74705SXin Li#define _rdar_12584554_C(_format_and_args_...) \
9*67e74705SXin Li    _rdar_12584554_B(self, _format_and_args_)
10*67e74705SXin Li
11*67e74705SXin Li@interface RDar12584554
12*67e74705SXin Li@end
13*67e74705SXin Li
14*67e74705SXin Li// This test case tests that the "@" is properly inserted before the '"', even in the
15*67e74705SXin Li// presence of a nested macro chain.
16*67e74705SXin Li@implementation RDar12584554
17*67e74705SXin Li- (void) test:(int)result {
18*67e74705SXin Li    _rdar_12584554_C("ted");
19*67e74705SXin Li}
20*67e74705SXin Li@end
21*67e74705SXin Li
22*67e74705SXin Li// CHECK: FIX-IT: Insert "@" at 18:22
23