mirror of
https://github.com/ton-blockchain/ton
synced 2025-02-15 04:32:21 +00:00
19 lines
205 B
Text
19 lines
205 B
Text
|
int f_impure();
|
||
|
|
||
|
int f_pure() pure {
|
||
|
return f_impure();
|
||
|
}
|
||
|
|
||
|
int main() {
|
||
|
return f_pure();
|
||
|
}
|
||
|
|
||
|
{-
|
||
|
@compilation_should_fail
|
||
|
@stderr
|
||
|
"""
|
||
|
An impure operation in a pure function
|
||
|
return f_impure();
|
||
|
"""
|
||
|
-}
|