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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [obj-c++.dg/] [template-7.mm] - Blame information for rev 706

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

Line No. Rev Author Line
1 703 jeremybenn
// Test that objective-c++ does not confuse a template parameter named 'Object'
2
// with an interface of the same name.
3
// Author: Fariborz Jahanian 
4
// { dg-do compile }
5
// { dg-options "" }
6
typedef struct objc_class *Class;
7
 
8
@interface Object
9
{
10
 Class isa;
11
}
12
@end
13
 
14
template 
15
struct pyobject_type
16
{
17
    static Object* checked_downcast(Object* x)
18
    {
19
        return x;
20
    }
21
};

powered by: WebSVN 2.1.0

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