diff options
Diffstat (limited to 'tests/ui/extern-flag/no-force-extern.rs')
-rw-r--r-- | tests/ui/extern-flag/no-force-extern.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/extern-flag/no-force-extern.rs b/tests/ui/extern-flag/no-force-extern.rs new file mode 100644 index 000000000..ce9cbfe1c --- /dev/null +++ b/tests/ui/extern-flag/no-force-extern.rs @@ -0,0 +1,10 @@ +// aux-crate:panic_handler=panic_handler.rs +// ignore-cross-compile (needs dylibs and compiletest doesn't have a more specific header) +// compile_flags: -Zunstable-options --crate-type dylib +// error-pattern: `#[panic_handler]` function required, but not found +// dont-check-compiler-stderr +// edition: 2018 + +#![no_std] + +fn foo() {} |