23 lines · plain
1// RUN: c-index-test -test-load-source all %s -Wno-objc-root-class > %t 2>&12// RUN: FileCheck -input-file=%t %s3 4@class NSString;5void _rdar_12584554_A (volatile const void * object, volatile const void * selector, const char * functionName, const char * fileName, unsigned int lineNumber, NSString * msgFormat, ...);6#define _rdar_12584554_B(self,_format_and_args_...) \7 do{ _rdar_12584554_A(&self,&_cmd,__PRETTY_FUNCTION__,__FILE__,__LINE__, _format_and_args_); }while(0)8#define _rdar_12584554_C(_format_and_args_...) \9 _rdar_12584554_B(self, _format_and_args_)10 11@interface RDar1258455412@end13 14// This test case tests that the "@" is properly inserted before the '"', even in the15// presence of a nested macro chain.16@implementation RDar1258455417- (void) test:(int)result {18 _rdar_12584554_C("ted");19}20@end21 22// CHECK: FIX-IT: Insert "@" at 18:2223