aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/vlib/v/tests/attribute_test.v
diff options
context:
space:
mode:
Diffstat (limited to 'v_windows/v/vlib/v/tests/attribute_test.v')
-rw-r--r--v_windows/v/vlib/v/tests/attribute_test.v49
1 files changed, 49 insertions, 0 deletions
diff --git a/v_windows/v/vlib/v/tests/attribute_test.v b/v_windows/v/vlib/v/tests/attribute_test.v
new file mode 100644
index 0000000..10dd6a6
--- /dev/null
+++ b/v_windows/v/vlib/v/tests/attribute_test.v
@@ -0,0 +1,49 @@
+[testing]
+struct StructAttrTest {
+ foo string
+ bar int
+}
+
+[testing]
+pub struct PubStructAttrTest {
+ foo string
+ bar int
+}
+
+[testing]
+enum EnumAttrTest {
+ one
+ two
+}
+
+[testing]
+pub enum PubEnumAttrTest {
+ one
+ two
+}
+
+[attrone; attrtwo]
+pub enum EnumMultiAttrTest {
+ one
+ two
+}
+
+[testing]
+fn test_fn_attribute() {
+ assert true
+}
+
+[testing]
+pub fn test_pub_fn_attribute() {
+ assert true
+}
+
+[attrone; attrtwo]
+fn test_fn_multi_attribute() {
+ assert true
+}
+
+[attrone; attrtwo]
+fn test_fn_multi_attribute_single() {
+ assert true
+}