Skip to content

Instantly share code, notes, and snippets.

View alexcrichton's full-sized avatar

Alex Crichton alexcrichton

  • 00:32 (UTC -05:00)
View GitHub Profile
(module
(func $test (param i32) (result externref)
i32.const 0
if
else
end
local.get 0
table.get 0
)
(table 4 externref)
(module
(func)
(table $table 100 externref)
(func (export "run") (param externref externref externref externref externref externref externref externref externref externref)
(call 0)
(table.set $table (i32.const 2111897723) (table.get $table (i32.const 8380672)))
(table.set $table (i32.const 2246115459) (table.get $table (i32.const 8904960)))
(table.set $table (i32.const 2380333195) (table.get $table (i32.const 9429248)))
(table.set $table (i32.const 2514550931) (table.get $table (i32.const 9953536)))
(table.set $table (i32.const 2648768667) (table.get $table (i32.const 10477824)))
(elem $f3z)
(module $$esl
(func $qz??i32x4.bitmaske
(export "c $555in555E")
(export "0554M******+*****e 4$qq")
)
(module
(export "q**")
(export "00AGGGGle $$qq")
)
(func $a)
(elem declare funcref)
(elem declare funcref (ref.func $a))
(module
(func
unreachable
i32.const 0
select
block (param i32)
unreachable
end))
(module
;; 64 random types to force the block type below to get encoded as sleb
(func (param f32 f32 f32 f32 f32 f32))
(func (param i32 f32 f32 f32 f32 f32))
(func (param f32 i32 f32 f32 f32 f32))
(func (param i32 i32 f32 f32 f32 f32))
(func (param f32 f32 i32 f32 f32 f32))
(func (param i32 f32 i32 f32 f32 f32))
(func (param f32 i32 i32 f32 f32 f32))
(func (param i32 i32 i32 f32 f32 f32))
#include <assert.h>
#include <git2/remote.h>
#include <git2/repository.h>
#include <git2/errors.h>
#include <git2/global.h>
#include <stdio.h>
int main() {
assert(git_libgit2_init() == 1);
//! Tests for the new feature resolver.
use cargo_test_support::cross_compile::{self, alternate};
use cargo_test_support::paths::CargoPathExt;
use cargo_test_support::publish::validate_crate_contents;
use cargo_test_support::registry::{Dependency, Package};
use cargo_test_support::{basic_manifest, cargo_process, project, rustc_host};
use std::fs::File;
#[cargo_test]
diff --git a/tests/testsuite/features2.rs b/tests/testsuite/features2.rs
index 3790ab4be..98cce9a9e 100644
--- a/tests/testsuite/features2.rs
+++ b/tests/testsuite/features2.rs
@@ -1749,3 +1749,85 @@ foo v0.1.0 ([..]/foo)
)
.run();
}
+#[cargo_test]
+fn test_proc_macro() {