summaryrefslogtreecommitdiff
path: root/test/FrontendC++/2003-11-18-EnumArray.cpp
blob: bb1b3bf301e5e51356b2aaf2d886af0086b0d617 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null

enum TchkType {
  tchkNum, tchkString, tchkSCN, tchkNone
};

struct Operator {
  enum TchkType tchk[8];
};

struct Operator opTab[] = {
  {{tchkNum, tchkNum, tchkString} }
};