OSDN Git Service

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