Skip to content

Commit 82a8363

Browse files
committed
XXX:test: Start enum tests.
1 parent b1725ea commit 82a8363

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

test/vast/Conversion/enum-a.c

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// RUN: %vast-front -vast-snapshot-at="hl-lower-enums"
2+
// RUN: cat %s.hl-lower-enums | %file-check %s -check-prefix=ENUM
3+
4+
enum E : int {
5+
E_a = 0,
6+
E_b = 1
7+
};
8+
9+
int main() {
10+
11+
int a = E_a;
12+
13+
enum E b = E_a;
14+
15+
enum E c = 0;
16+
17+
enum E d = a;
18+
}

0 commit comments

Comments
 (0)