diff --git a/release/ci-compile.js b/release/ci-compile.js index bb90ff09250d789f410a091ddc73dc5ba0063e46..aa69f79956a7c4677e5a85da1dff0c5bb2497506 100755 --- a/release/ci-compile.js +++ b/release/ci-compile.js @@ -220,6 +220,10 @@ async function ci_compile_linux(arch) { platform, strip: true, tests: [ + { + name: "linux-opengl-ld", + platform + }, { name: "linux-opengl-dlopen", platform diff --git a/test/linux-opengl-ld/Cargo.lock b/test/linux-opengl-ld/Cargo.lock new file mode 100644 index 0000000000000000000000000000000000000000..097f621cefc81ec5c4a4c2db26feb3bb1a442821 --- /dev/null +++ b/test/linux-opengl-ld/Cargo.lock @@ -0,0 +1,6 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +[[package]] +name = "linux-opengl-ld" +version = "0.1.0" + diff --git a/test/linux-opengl-ld/Cargo.toml b/test/linux-opengl-ld/Cargo.toml new file mode 100644 index 0000000000000000000000000000000000000000..41a769cf5285d65bf07306161e5bca7d18b061b6 --- /dev/null +++ b/test/linux-opengl-ld/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "linux-opengl-ld" +version = "0.1.0" +authors = ["Amos Wenger "] +edition = "2018" + +[dependencies] diff --git a/test/linux-opengl-ld/src/main.rs b/test/linux-opengl-ld/src/main.rs new file mode 100644 index 0000000000000000000000000000000000000000..7b7d06ccf5b0c1d1dbaf5c23ceece4803adecafa --- /dev/null +++ b/test/linux-opengl-ld/src/main.rs @@ -0,0 +1,11 @@ + +#[link(name = "GL")] +extern "C" { + fn glXSwapBuffers(dpy: *const i8, drawable: u64); +} + +fn main() { + unsafe { + glXSwapBuffers(0xDEADBEEF as *const i8, 0); + } +}