about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorPhilippe Laflamme <philippe.laflamme@gmail.com>2020-10-22 23:52:07 -0400
committerPhilippe Laflamme <philippe.laflamme@gmail.com>2021-01-13 23:14:00 -0500
commit64d695b753bfe09797b5f95c7b9b72948da01710 (patch)
treea01f3827be640131dc03a287e00af5dd94ca925c /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent8ddad18283e304753e09ef651209b4a6b54148b0 (diff)
downloadrust-64d695b753bfe09797b5f95c7b9b72948da01710.tar.gz
rust-64d695b753bfe09797b5f95c7b9b72948da01710.zip
Adds tests to ensure some base op traits exist.
These tests invoke the various op traits using all accepted types they
are implemented for as well as for references to those types.

This fixes #49660 and ensures the following implementations exist:

* `Add`, `Sub`, `Mul`, `Div`, `Rem`
  * `T op T`, `T op &T`, `&T op T` and `&T op &T`
  * for all integer and floating point types
* `AddAssign`, `SubAssign`, `MulAssign`, `DivAssign`, `RemAssign`
  * `&mut T op T` and `&mut T op &T`
  * for all integer and floating point types
* `Neg`
  * `op T` and `op &T`
  * for all signed integer and floating point types
* `Not`
  * `op T` and `op &T`
  * for `bool`
* `BitAnd`, `BitOr`, `BitXor`
  * `T op T`, `T op &T`, `&T op T` and `&T op &T`
  * for all integer types and bool
* `BitAndAssign`, `BitOrAssign`, `BitXorAssign`
  * `&mut T op T` and `&mut T op &T`
  * for all integer types and bool
* `Shl`, `Shr`
  * `L op R`, `L op &R`, `&L op R` and `&L op &R`
  * for all pairs of integer types
* `ShlAssign`, `ShrAssign`
  * `&mut L op R`, `&mut L op &R`
  * for all pairs of integer types
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions