Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: add 'aligned_attr_gcc_windows.vv' for gcc (#20870)
- Loading branch information
1 parent
50e271a
commit d198a89
Showing
4 changed files
with
36 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
13 changes: 13 additions & 0 deletions
13
vlib/v/gen/c/testdata/aligned_attr_gcc_windows.c.must_have
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,13 @@ | ||
|
||
struct main__Test { | ||
int a; | ||
} __attribute__((aligned (8))); | ||
|
||
struct main__Test2 { | ||
int a; | ||
int b; | ||
} __attribute__((aligned (16))); | ||
|
||
union main__Test3 { | ||
int a; | ||
} __attribute__((aligned (8))); |
Empty file.
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,17 @@ | ||
// vtest vflags: -cc gcc -os windows | ||
|
||
@[aligned:8] | ||
struct Test { | ||
a int | ||
} | ||
|
||
@[aligned:16] | ||
struct Test2 { | ||
a int | ||
b int | ||
} | ||
|
||
@[aligned:8] | ||
union Test3 { | ||
a int | ||
} |