gcc/testsuite/g++.old-deja/g++.brendan/misc16.C
raw| 1 | // { 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}; |