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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.brendan/] [misc16.C] - Blame information for rev 699

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 699 jeremybenn
// { dg-do assemble  }
2
// GROUPS passed miscellaneous-bugs
3
// Using a typedef causes a compiler error
4
typedef unsigned int Uint32;
5
 
6
// Using a define so that there isn't a typedef works OK.
7
//#define Uint32 unsigned int
8
 
9
Uint32 func0(Uint32, Uint32)
10
{
11
   return 0;
12
}
13
 
14
Uint32 func1(Uint32, Uint32)
15
{
16
   return 1;
17
}
18
 
19
Uint32 (*mf[])(Uint32, Uint32) = {func0, func1};

powered by: WebSVN 2.1.0

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