Warn pointer to signed integer cast for ilp32
[official-gcc.git] / gcc / testsuite / gcc.dg / warn-nsstring.c
blob3795fb7376b33c02067fd3fc4e540efbb13a16d8
1 /* Check that the NSString format extension is rejected in c. */
2 /* { dg-do compile } */
4 extern void NSLog (void *fmt, ...) __attribute__((format(__NSString__, 1, 2))); /* { dg-warning "is only allowed in Objective-C dialects" } */
5 extern void NSLog1 (void *fmt, ...) __attribute__((format(NSString, 1, 2))); /* { dg-warning "is only allowed in Objective-C dialects" } */