Skip to content

Commit

Permalink
Slightly simplify test.
Browse files Browse the repository at this point in the history
  • Loading branch information
adetaylor committed Jun 27, 2023
1 parent fee8717 commit 170e419
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions integration-tests/tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12248,20 +12248,13 @@ fn test_reference_const_char_cast() {
class Bytes {
public:
typedef char value_type;
typedef std::size_t size_type;
typedef const char& reference;
private:
const value_type *d_ptr;
size_type d_length;
const char *d_ptr;
std::size_t d_length;
public:
reference front() const;
reference front() const { return d_ptr[0]; }
};
inline Bytes::reference Bytes::front() const
{
return d_ptr[0];
}
"};
let rs = quote! {};
run_test("", hdr, rs, &["Bytes"], &[]);
Expand Down

0 comments on commit 170e419

Please sign in to comment.