summaryrefslogtreecommitdiff
path: root/tests/keyword_test.fbs
blob: b5955cbfd2088e596d7bd6872f44f3382279e934 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
namespace KeywordTest;

enum ABC: int { void, where, stackalloc }

enum public: int { }

table KeywordsInTable {
  is: ABC = void;
  private: public;
  type: int;
  default: bool = false;
}

union KeywordsInUnion {
  static: KeywordsInTable,
  internal: KeywordsInTable,
}

table Table2 {
  type: KeywordsInUnion;
}