1.23
2.0
main
test-branch
|
Last change
on this file since 9d6e904 was 2e44750, checked in by Manchun Zheng <zmanchun@…>, 12 years ago |
|
cleaned up GUI module; added a (failed) test for a new ABC bug that doesn't report error for assigning an integer with a real value.
git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@1074 fb995dde-84ed-4084-dfe6-e5aef3e2452c
|
-
Property mode
set to
100644
|
|
File size:
274 bytes
|
| Line | |
|---|
| 1 | /**
|
|---|
| 2 | * This example demonstrates the implicit conversion of an assignment.
|
|---|
| 3 | * Command line execution:
|
|---|
| 4 | * civl verify assignIntWtReal.cvl
|
|---|
| 5 | */
|
|---|
| 6 | #include<civlc.h>
|
|---|
| 7 | #include<assert.h>
|
|---|
| 8 | void main() {
|
|---|
| 9 | int x = 1.0; // illegal initializer, should report an error.
|
|---|
| 10 | assert (x==1);
|
|---|
| 11 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.