source: CIVL/examples/languageFeatures/lambdaBad.cvl

main
Last change on this file was 5514bd7, checked in by Stephen Siegel <siegel@…>, 15 months ago

Adding a few more tests and examples: 2 for MPI using lambdas, and one LanguageFeatureTest
using a bad lambda expression that should result in an error message but instead crashes.

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

  • Property mode set to 100644
File size: 182 bytes
RevLine 
[5514bd7]1
2// the array type preceding $lambda should be complete.
3// this should produce a reasonable error message
4int main(void) {
5 int a[] = (int[])$lambda(int i) i;
6 $print(a, "\n");
7}
Note: See TracBrowser for help on using the repository browser.