Skip to content

Commit 2ccc1ca

Browse files
committed
test: Fix naming of enum declarations.
1 parent 0b1cc06 commit 2ccc1ca

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

test/vast/Dialect/HighLevel/enum-a.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %file-check %s
22
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o %t && %vast-opt %t | diff -B %t -
33

4-
// CHECK: hl.enum "color" : !hl.int< unsigned > {
4+
// CHECK: hl.enum @color : !hl.int< unsigned > {
55
// CHECK: hl.enum.const @RED = #core.integer<0> : !hl.int
66
// CHECK: hl.enum.const @GREEN = #core.integer<1> : !hl.int
77
// CHECK: hl.enum.const @BLUE = #core.integer<2> : !hl.int

test/vast/Dialect/HighLevel/enum-b.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
int puts(const char *str);
55

66
int main() {
7-
// CHECK: hl.enum "color" : !hl.int< unsigned > {
7+
// CHECK: hl.enum @color : !hl.int< unsigned > {
88
// CHECK: hl.enum.const @RED = #core.integer<0> : !hl.int
99
// CHECK: hl.enum.const @GREEN = #core.integer<1> : !hl.int
1010
// CHECK: hl.enum.const @BLUE = #core.integer<2> : !hl.int

test/vast/Dialect/HighLevel/enum-c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %file-check %s
22
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o %t && %vast-opt %t | diff -B %t -
33

4-
// CHECK: hl.enum "Foo" : !hl.int< unsigned >
4+
// CHECK: hl.enum @Foo : !hl.int< unsigned >
55
// CHECK: hl.enum.const @A = #core.integer<0> : !hl.int
66
// CHECK: hl.enum.const @B = #core.integer<1> : !hl.int
77
// CHECK: hl.enum.const @C = #core.integer<10> : !hl.int init

test/vast/Dialect/HighLevel/enum-d.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %file-check %s
22
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o %t && %vast-opt %t | diff -B %t -
33

4-
// CHECK: hl.enum "color" : !hl.int< unsigned >
4+
// CHECK: hl.enum @color : !hl.int< unsigned >
55
enum color { RED, GREEN, BLUE };
66
// CHECK: hl.var @r : !hl.lvalue<!hl.elaborated<!hl.enum<"color">>>
77
// CHECK: hl.enumref @RED : !hl.int

test/vast/Dialect/HighLevel/enum-e.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
// CHECK: hl.struct "Element"
55
// CHECK: hl.field "z" : !hl.int
6-
// CHECK: hl.enum "State" : !hl.int< unsigned >
6+
// CHECK: hl.enum @State : !hl.int< unsigned >
77
// CHECK: hl.enum.const @SOLID
88
// CHECK: hl.enum.const @LIQUID
99
// CHECK: hl.enum.const @GAS

test/vast/Dialect/HighLevel/enum-f.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %vast-front -vast-emit-mlir=hl -o - %s | %file-check %s
22
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o %t && %vast-opt %t | diff -B %t -
33

4-
// CHECK: hl.enum "kobj_ns_type" : !hl.int< unsigned >
4+
// CHECK: hl.enum @kobj_ns_type : !hl.int< unsigned >
55
// CHECK: hl.enum.const @KOBJ_NS_TYPE_NONE
66
// CHECK: hl.enum.const @KOBJ_NS_TYPE_NET
77
// CHECK: hl.enum.const @KOBJ_NS_TYPES

test/vast/Dialect/HighLevel/qualifiers-h.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o - | %file-check %s
22
// RUN: %vast-cc1 -vast-emit-mlir=hl %s -o %t && %vast-opt %t | diff -B %t -
33

4-
// CHECK: hl.enum "e" : !hl.int< unsigned >
4+
// CHECK: hl.enum @e : !hl.int< unsigned >
55
enum e { a, b, c };
66

77
// CHECK: hl.var @v : !hl.lvalue<!hl.elaborated<!hl.enum<"e">>>

0 commit comments

Comments
 (0)