opnsense-src/test/FrontendC++/2003-11-18-EnumArray.cpp

15 lines
228 B
C++
Raw Normal View History

2009-10-14 13:57:32 -04:00
// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null
2009-06-02 13:52:33 -04:00
enum TchkType {
tchkNum, tchkString, tchkSCN, tchkNone
};
struct Operator {
enum TchkType tchk[8];
};
struct Operator opTab[] = {
{{tchkNum, tchkNum, tchkString} }
};