blob: d8d81784f867419f13a74424f024b369ac0b7d85 [file] [log] [blame]
/* Test demangling an Objective-C method in error messages. */
/* { dg-do compile } */
/* { dg-additional-options "-Wno-return-type" } */
// { dg-additional-options "-Wno-objc-root-class" }
#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