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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [obj-c++.dg/] [typedef-alias-1.mm] - Blame information for rev 703

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 703 jeremybenn
/* Typedefs of ObjC types should work without any bogus warnings. */
2
/* { dg-do compile } */
3
 
4
#include "../objc-obj-c++-shared/TestsuiteObject.h"
5
#include 
6
 
7
typedef TestsuiteObject MyObject;
8
 
9
int main (int argc, const char * argv[])
10
{
11
    TestsuiteObject* a = nil;
12
    MyObject* b = a;
13
    TestsuiteObject* c = b;
14
 
15
    return 0;
16
}
17
 

powered by: WebSVN 2.1.0

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