diff options
Diffstat (limited to 'tests/diagnostics/bool-to-float.slang')
| -rw-r--r-- | tests/diagnostics/bool-to-float.slang | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/diagnostics/bool-to-float.slang b/tests/diagnostics/bool-to-float.slang new file mode 100644 index 000000000..087cf86b3 --- /dev/null +++ b/tests/diagnostics/bool-to-float.slang @@ -0,0 +1,13 @@ +// bool-to-float.slang + +// Diagnostic messages related to converting bool to float + +//DIAGNOSTIC_TEST:SIMPLE: + +struct Test +{ + void test() + { + float f = true; + } +} |
