diff options
| -rw-r--r-- | source/slang/slang-check.cpp | 5 | ||||
| -rw-r--r-- | tests/compute/enum.slang | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/source/slang/slang-check.cpp b/source/slang/slang-check.cpp index 9a4a01045..464dafcd9 100644 --- a/source/slang/slang-check.cpp +++ b/source/slang/slang-check.cpp @@ -5359,6 +5359,11 @@ namespace Slang CASE(+); // TODO: this can also be unary... CASE(*); + CASE(<<); + CASE(>>); + CASE(&); + CASE(|); + CASE(^); #undef CASE // binary operators with chance of divide-by-zero diff --git a/tests/compute/enum.slang b/tests/compute/enum.slang index 2619d8eb5..c10cedc25 100644 --- a/tests/compute/enum.slang +++ b/tests/compute/enum.slang @@ -7,7 +7,7 @@ enum Color { Red, - Green = 2, + Green = (1 << 1), Blue, } |
