gcc/testsuite/g++.dg/other/typedef3.C
raw| 1 | // Contributed by Dodji Seketeli <[email protected]> |
| 2 | // Origin: PR c++/40357 |
| 3 | // { dg-do compile } |
| 4 | |
| 5 | struct XalanCProcessor |
| 6 | { |
| 7 | typedef enum {eInvalid, eXalanSourceTree, eXercesDOM} ParseOptionType; |
| 8 | ParseOptionType getParseOption(void); |
| 9 | }; |
| 10 | typedef XalanCProcessor::ParseOptionType ParseOptionType; |
| 11 | ParseOptionType XalanCProcessor::getParseOption(void) { return ParseOptionType(); } |
| 12 |