aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-12-18 16:56:50 -0500
committerAndrew Kelley <superjoe30@gmail.com>2016-12-18 16:56:50 -0500
commite50ced44a2cf6268c19df901ad56b367d8d802fe (patch)
treeb4bd67b3a0a8bdbc853dba760c0d66a406e11d4a /test
parent2e6aa6d813cf3fd4180b8c9ffc671b4bcee54586 (diff)
downloadzig-e50ced44a2cf6268c19df901ad56b367d8d802fe.tar.gz
zig-e50ced44a2cf6268c19df901ad56b367d8d802fe.zip
IR: all structs anonymous
Diffstat (limited to 'test')
-rw-r--r--test/self_hosted2.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/self_hosted2.zig b/test/self_hosted2.zig
index 517567271e..8692f51e17 100644
--- a/test/self_hosted2.zig
+++ b/test/self_hosted2.zig
@@ -87,9 +87,9 @@ var goto_counter: i32 = 0;
-struct FooA {
+const FooA = struct {
fn add(a: i32, b: i32) -> i32 { a + b }
-}
+};
const foo_a = FooA {};
fn testStructStatic() {