source: tests/enum_tests/pointerEnum.cfa @ a46f7b6

ADTast-experimental
Last change on this file since a46f7b6 was 12df6fe, checked in by JiadaL <j82liang@…>, 2 years ago

Fix an enumerator value bug; add basic tests for new features; save the current progress before merge

  • Property mode set to 100644
File size: 156 bytes
Line 
1#include <fstream.hfa>
2
3struct E {
4    int x;
5};
6struct E e = {1};
7enum(E *) {
8    First = &e,
9};
10
11int main() {
12    E * v = First;
13    sout | "v: " | e.x;
14}
Note: See TracBrowser for help on using the repository browser.