summaryrefslogtreecommitdiff
path: root/gcc/testsuite/obj-c++.dg/demangle-3.mm
blob: afb83d75bfe31498802f2d2da551bf051905fa0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* 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