Lionel Sambuc 0a6a1f1d05 NetBSD re-synchronization of the source tree
This brings our tree to NetBSD 7.0, as found on -current on the
10-10-2015.

This updates:
 - LLVM to 3.6.1
 - GCC to GCC 5.1
 - Replace minix/commands/zdump with usr.bin/zdump
 - external/bsd/libelf has moved to /external/bsd/elftoolchain/
 - Import ctwm
 - Drop sprintf from libminc

Change-Id: I149836ac18e9326be9353958bab9b266efb056f0
2016-01-13 20:32:14 +01:00

27 lines
1.0 KiB
Objective-C

// RUN: c-index-test -test-load-source all %s -Wno-objc-root-class > %t 2>&1
// RUN: FileCheck -input-file=%t %s
@class NSString;
void _rdar_12584554_A (volatile const void * object, volatile const void * selector, const char * functionName, const char * fileName, unsigned int lineNumber, NSString * msgFormat, ...);
#define _rdar_12584554_B(self,_format_and_args_...) \
do{ _rdar_12584554_A(&self,&_cmd,__PRETTY_FUNCTION__,__FILE__,__LINE__, _format_and_args_); }while(0)
#define _rdar_12584554_C(_format_and_args_...) \
_rdar_12584554_B(self, _format_and_args_)
@interface RDar12584554
@end
// This test case tests that the "@" is properly inserted before the '"', even in the
// presence of a nested macro chain.
@implementation RDar12584554
- (void) test:(int)result {
_rdar_12584554_C("ted");
}
@end
// CHECK: FIX-IT: Insert "@" at 18:22
// CHECK: fix-its.m:9:28: note: expanded from macro '_rdar_12584554_C'
// CHECK: Number FIX-ITs = 0
// CHECK: fix-its.m:7:77: note: expanded from macro '_rdar_12584554_B'
// CHECK: Number FIX-ITs = 0