blob: afb83d75bfe31498802f2d2da551bf051905fa0d [file] [log] [blame]
/* Test demangling an Objective-C method in error messages. */
/* { dg-do compile } */
/* { dg-additional-options "-Wno-return-type" } */
#include <objc/objc.h>
@interface DemangleTest
{
Class isa;
}
+ (int) testFunction1;
@end
@implementation DemangleTest
+ (int) testFunction1
{
/* TODO: Hack the testsuite so we can test that we get
dg-error "In function .+[DemangleTest testFunction1]."
At the moment, the message is filtered out. */
z; /* { dg-error "was not declared" } */
}
@end