Home | History | Annotate | Download | only in Index
      1 // RUN: c-index-test -test-load-source all %s -Wno-objc-root-class > %t 2>&1
      2 // RUN: FileCheck -input-file=%t %s
      3 
      4 @class NSString;
      5 void _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 RDar12584554
     12 @end
     13 
     14 // This test case tests that the "@" is properly inserted before the '"', even in the
     15 // presence of a nested macro chain.
     16 @implementation RDar12584554
     17 - (void) test:(int)result {
     18     _rdar_12584554_C("ted");
     19 }
     20 @end
     21 
     22 // CHECK: FIX-IT: Insert "@" at 18:22
     23