mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
&&& was accidentally available as a valid prefix operator.
This commit is contained in:
10
test/test_suite/expressions/addr_fail_2.c3
Normal file
10
test/test_suite/expressions/addr_fail_2.c3
Normal file
@@ -0,0 +1,10 @@
|
||||
import std;
|
||||
|
||||
fn int main()
|
||||
{
|
||||
// This works
|
||||
int** my_super_cool_pointer = &&(&&1);
|
||||
// This doesn't
|
||||
int** my_super_cool_pointer2 = &&&&1; // #error: '&&&' is the compile time '&&' operator
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user