aboutsummaryrefslogtreecommitdiff
path: root/tests/legacy/asm_include/foo_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/legacy/asm_include/foo_test.go')
-rw-r--r--tests/legacy/asm_include/foo_test.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/legacy/asm_include/foo_test.go b/tests/legacy/asm_include/foo_test.go
new file mode 100644
index 00000000..5ca67b94
--- /dev/null
+++ b/tests/legacy/asm_include/foo_test.go
@@ -0,0 +1,10 @@
+package foo
+
+import "testing"
+
+func TestFoo(t *testing.T) {
+ x := foo()
+ if x != 42 {
+ t.Errorf("got %d; want %d", x, 42)
+ }
+}