1 /* Graceful handling of a syntax error. */
2 /* { dg-do compile } */
4 #ifdef __NEXT_RUNTIME__
5 #include <Foundation/NSObject.h>
6 #define OBJECT NSObject
8 #include <objc/Object.h>
19 extern void NXLog(const char *, ...);
21 @interface Test2 : OBJECT {
28 NXLog("Hello, world!"); /* { dg-error "expected .\{. before .NXLog." } */
29 } /* { dg-error "stray .\}. between Objective\\-C\\+\\+ methods" } */
32 /* { dg-error "expected constructor, destructor, or type conversion before" "" { target *-*-* } 28 } */