OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [obj-c++.dg/] [method-6.mm] - Blame information for rev 823

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* The following should NOT generate "may not respond to" warnings,
2
   since a forward-declared @class (instance) should be treated like a
3
   'Class') ('id').  */
4
 
5
/* { dg-do compile } */
6
 
7
#include 
8
 
9
@class NotKnown;
10
 
11
void foo(NotKnown *n) {
12
  [NotKnown new];
13
  [n nonexistent_method]; /* { dg-warning "no .\\-nonexistent_method. method found" } */
14
}
15
 
16
/* { dg-warning "Messages without a matching method signature" "" { target *-*-* } 0 } */
17
/* { dg-warning "will be assumed to return .id. and accept" "" { target *-*-* } 0 } */
18
/* { dg-warning ".\.\.\.. as arguments" "" { target *-*-* } 0 } */
19
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.