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

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

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

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