Debian Codegraph @

gcc/testsuite/obj-c++.dg/demangle-3.mm

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