diff options
| author | Tim Foley <tfoleyNV@users.noreply.github.com> | 2017-06-12 14:33:31 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-06-12 14:33:31 -0700 |
| commit | ce90fec1c795eaafbd91d7b8a83501a57eeb1946 (patch) | |
| tree | 2e939a9ef7b972944b71ea3f7d11a17af844c3fe /tests/diagnostics/while-predicate-type.slang | |
| parent | d1f11a29f8a48eecd47ac64c8635ed062cba982d (diff) | |
| parent | 5b49974bd6ddd248b5ee1b1e29c0acfc3c422a3a (diff) | |
Merge pull request #3 from tfoleyNV/rename-tests
Rename tests from `*.spire` to `*.slang`
Diffstat (limited to 'tests/diagnostics/while-predicate-type.slang')
| -rw-r--r-- | tests/diagnostics/while-predicate-type.slang | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/diagnostics/while-predicate-type.slang b/tests/diagnostics/while-predicate-type.slang new file mode 100644 index 000000000..14ce45533 --- /dev/null +++ b/tests/diagnostics/while-predicate-type.slang @@ -0,0 +1,10 @@ +//TEST:SIMPLE: +// bad type for `while` predicate + +struct S {}; + +void foo() +{ + S s; + while(s) {break;} +} |
