source: CIVL/examples/languageFeatures/intToBool.cvl@ 96e7e5e

1.23 2.0 main test-branch
Last change on this file since 96e7e5e was d0ef687, checked in by Manchun Zheng <zmanchun@…>, 12 years ago

added test for converting int to bool.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@886 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 159 bytes
Line 
1#include<civlc.h>
2#include<stdio.h>
3
4void main(){
5 int a = 9;
6 _Bool b = $true;
7
8 if(b)
9 printf("b is true\n");
10 else
11 printf("b is false\n");
12}
Note: See TracBrowser for help on using the repository browser.