summaryrefslogtreecommitdiff
path: root/gcc/testsuite/obj-c++.dg/demangle-3.mm
blob: 01e6c618e5e4eef60c591cc2346e574c7e188646 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* Test demangling an Objective-C method in error messages.  */
/* { dg-do compile } */

#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