mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-23 05:31:32 +00:00
Isolated emscripten in new lib
This commit is contained in:
20
lib/emscripten/emtests/test_array2.c
Normal file
20
lib/emscripten/emtests/test_array2.c
Normal file
@ -0,0 +1,20 @@
|
||||
/*
|
||||
* Copyright 2016 The Emscripten Authors. All rights reserved.
|
||||
* Emscripten is available under two separate licenses, the MIT license and the
|
||||
* University of Illinois/NCSA Open Source License. Both these licenses can be
|
||||
* found in the LICENSE file.
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
static const double grid[4][2] = {{-3 / 3., -1 / 3.},
|
||||
{+1 / 3., -3 / 3.},
|
||||
{-1 / 3., +3 / 3.},
|
||||
{+3 / 3., +1 / 3.}};
|
||||
|
||||
int main() {
|
||||
for (int i = 0; i < 4; i++)
|
||||
printf("%d:%.2f,%.2f ", i, grid[i][0], grid[i][1]);
|
||||
printf("\n");
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user