-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// RUN: %vast-front -vast-emit-mlir=hl %s -o - | %vast-opt --vast-hl-ude | %file-check %s | ||
|
||
// CHECK: hl.struct "used" | ||
struct used {}; | ||
|
||
// CHECK-NOT: hl.typedef "unused_typedef" | ||
typedef struct used unused_typedef; | ||
|
||
int main() { | ||
struct used u; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// RUN: %vast-front -vast-emit-mlir=hl %s -o - | %vast-opt --vast-hl-ude | %file-check %s | ||
|
||
// CHECK: hl.struct "used" | ||
struct used {}; | ||
|
||
// CHECK-NOT: hl.typedef "unused_typedef" | ||
typedef struct used unused_typedef; | ||
|
||
// CHECK: hl.typedef "used_typedef" | ||
typedef struct used used_typedef; | ||
|
||
int main() { | ||
used_typedef u; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// RUN: %vast-front -vast-emit-mlir=hl %s -o - | %vast-opt --vast-hl-ude | %file-check %s | ||
|
||
// CHECK: hl.struct "used" | ||
struct used {}; | ||
|
||
// CHECK-NOT: hl.typedef "unused_typedef" | ||
typedef struct used unused_typedef; | ||
|
||
// CHECK-NOT: hl.typedef "used_typedef" | ||
typedef unused_typedef unused_transitive_typedef; | ||
|
||
int main() { | ||
struct used u; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// RUN: %vast-front -vast-emit-mlir=hl %s -o - | %vast-opt --vast-hl-ude | %file-check %s | ||
|
||
// CHECK-NOT: hl.struct "used" | ||
struct unused_struct {}; | ||
|
||
// CHECK-NOT: hl.typedef "unused_typedef" | ||
typedef struct unused_struct unused_typedef; | ||
|
||
// CHECK-NOT: hl.typedef "used_typedef" | ||
typedef unused_typedef unused_transitive_typedef; |