diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-06-15 10:34:04 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-06-15 10:34:04 -0400 |
| commit | 60025a37045835c8bbf914eccdbeba6d6e2c275f (patch) | |
| tree | 38282635e1f5aa5be22cf96e6b8cddbb72e971f4 /test/compile_errors.zig | |
| parent | acf16b5fb34e3ce985df16cba1be1455492e4564 (diff) | |
| parent | 7c5ceb0c4cdf5fafadd92b13048bc9878554abc4 (diff) | |
| download | zig-60025a37045835c8bbf914eccdbeba6d6e2c275f.tar.gz zig-60025a37045835c8bbf914eccdbeba6d6e2c275f.zip | |
Merge remote-tracking branch 'origin/master' into copy-elision-3
Diffstat (limited to 'test/compile_errors.zig')
| -rw-r--r-- | test/compile_errors.zig | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/test/compile_errors.zig b/test/compile_errors.zig index 7896a0b732..e85b2f3395 100644 --- a/test/compile_errors.zig +++ b/test/compile_errors.zig @@ -4646,16 +4646,6 @@ pub fn addCases(cases: *tests.CompileErrorContext) void { ); cases.add( - "setting a section on an extern variable", - \\extern var foo: i32 linksection(".text2"); - \\export fn entry() i32 { - \\ return foo; - \\} - , - "tmp.zig:1:33: error: cannot set section of external variable 'foo'", - ); - - cases.add( "setting a section on a local variable", \\export fn entry() i32 { \\ var foo: i32 linksection(".text2") = 1234; @@ -4666,16 +4656,6 @@ pub fn addCases(cases: *tests.CompileErrorContext) void { ); cases.add( - "setting a section on an extern fn", - \\extern fn foo() linksection(".text2") void; - \\export fn entry() void { - \\ foo(); - \\} - , - "tmp.zig:1:29: error: cannot set section of external function 'foo'", - ); - - cases.add( "returning address of local variable - simple", \\export fn foo() *i32 { \\ var a: i32 = undefined; |
