Fix test-suite fallout of default -Wreturn-type.
[official-gcc.git] / gcc / testsuite / obj-c++.dg / demangle-3.mm
blobafb83d75bfe31498802f2d2da551bf051905fa0d
1 /* Test demangling an Objective-C method in error messages.  */
2 /* { dg-do compile } */
3 /* { dg-additional-options "-Wno-return-type" } */
5 #include <objc/objc.h>
7 @interface DemangleTest
9   Class isa;
11 + (int) testFunction1;
12 @end
14 @implementation DemangleTest
15 + (int) testFunction1
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" } */
22 @end