diff options
author | Marco Poletti <poletti.marco@gmail.com> | 2018-09-01 12:56:44 +0100 |
---|---|---|
committer | Marco Poletti <poletti.marco@gmail.com> | 2018-09-01 12:59:48 +0100 |
commit | dc2acf5f94c159d425b42d841b1133b6abb68656 (patch) | |
tree | 7ae1acbb8d36c3c9f2f2c43770ccce45ee45aad7 /tests | |
parent | 5ac0a300d908575e57ba3e8e383338a7f64062ff (diff) | |
download | google-fruit-dc2acf5f94c159d425b42d841b1133b6abb68656.tar.gz |
Slight change to componentFunction() so that the user gets a better error in MSVC when they try to pass a param type that's not movable.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/test_component_functions.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_component_functions.py b/tests/test_component_functions.py index e9ebe27..e060402 100755 --- a/tests/test_component_functions.py +++ b/tests/test_component_functions.py @@ -147,7 +147,7 @@ def test_component_function_error_not_move_constructible(): expect_generic_compile_error( 'error: use of deleted function .Arg::Arg\(Arg&&\).' + '|error: call to deleted constructor of .Arg.' - + '|.Arg::Arg\(Arg &&\).: cannot convert argument 1 from .std::_Tuple_val<Arg>. to .const Arg &.', + + '|.Arg::Arg\(Arg &&\).: attempting to reference a deleted function', COMMON_DEFINITIONS, source) @@ -183,7 +183,7 @@ def test_component_function_error_not_move_constructible_with_conversion(): expect_generic_compile_error( 'error: use of deleted function .Arg::Arg\(Arg&&\).' + '|error: call to deleted constructor of .Arg.' - + '|.Arg::Arg\(Arg &&\).: cannot convert argument 1 from .std::_Tuple_val<Arg>. to .int.' + + '|.Arg::Arg\(Arg &&\).: attempting to reference a deleted function' + '|error: copying parameter of type .Arg. invokes deleted constructor', COMMON_DEFINITIONS, source) |