Skip to content

Commit

Permalink
Add a simple test.
Browse files Browse the repository at this point in the history
  • Loading branch information
nnethercote committed Apr 22, 2020
1 parent ae322ff commit 2984799
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/test/ui/lto-and-no-bitcode-in-rlib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// compile-flags: -C lto -C bitcode-in-rlib=no

fn main() {}
2 changes: 2 additions & 0 deletions src/test/ui/lto-and-no-bitcode-in-rlib.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
error: options `-C bitcode-in-rlib=no` and `-C lto` are incompatible

0 comments on commit 2984799

Please sign in to comment.