1/* Test demangling an Objective-C method in error messages.  */
2/* { dg-do compile } */
3/* { dg-additional-options "-Wno-return-type" } */
4
5#include <objc/objc.h>
6
7@interface DemangleTest
8{
9  Class isa;
10}
11+ (int) testFunction1;
12@end
13
14@implementation DemangleTest
15+ (int) testFunction1
16{
17  /* TODO: Hack the testsuite so we can test that we get
18     dg-error "In function .+[DemangleTest testFunction1]."
19     At the moment, the message is filtered out.  */
20  z; /* { dg-error "was not declared" } */
21}
22@end
23