source: tests/bugs/290.cfa @ 075c6d5

Last change on this file since 075c6d5 was df2e00f, checked in by Andrew Beach <ajbeach@…>, 6 days ago

Made heap pass the invariant check. We should be able to enable invariants on the standard library. Also added the reproductions for new trac trickets.

  • Property mode set to 100644
File size: 282 bytes
Line 
1// Trac ticket
2// https://cforall.uwaterloo.ca/trac/ticket/290
3// Two-Argument Conditional Revaluates Condition
4
5bool yes() {
6        printf("yes\n");
7        return true;
8}
9
10int main(int argc, char * argv[]) {
11        bool result = yes() ?: false;
12        printf("result: %s\n", result ? "true" : "false");
13}
Note: See TracBrowser for help on using the repository browser.