Ensure that non-shared_ptr, non-boxed_value, non-reference return types

are treated as const.
This commit is contained in:
Jason Turner
2011-03-26 09:03:36 -06:00
parent 92c836c58a
commit 87c29ebc91
3 changed files with 25 additions and 1 deletions

View File

@@ -0,0 +1,2 @@
assert_throws("Mismatched types in equation, lhs is const.", fun() { 1 = 2 } );
assert_throws("Mismatched types in equation, lhs is const.", fun() { 1 + 2 = 2 } );