aboutsummaryrefslogtreecommitdiff
path: root/content/constants/int3.go
diff options
context:
space:
mode:
Diffstat (limited to 'content/constants/int3.go')
-rw-r--r--content/constants/int3.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/content/constants/int3.go b/content/constants/int3.go
new file mode 100644
index 0000000..c2cec6e
--- /dev/null
+++ b/content/constants/int3.go
@@ -0,0 +1,10 @@
+// +build OMIT
+
+package main
+
+func main() {
+ // START OMIT
+ var u8 uint8 = -1 // Error: negative value.
+ // STOP OMIT
+ _ = u8
+}