source:
CIVL/examples/translation/openclversion2.1/openSimp.cvl@
ceef308
| Last change on this file since ceef308 was 1454e00, checked in by , 12 years ago | |
|---|---|
|
|
| File size: 183 bytes | |
| Rev | Line | |
|---|---|---|
| [1454e00] | 1 | int func() |
| [da70bc2] | 2 | { |
| [1454e00] | 3 | return 4; |
| [da70bc2] | 4 | } |
| [1454e00] | 5 | |
| [1acabb5] | 6 | int main(int argc, char** argv) |
| [da70bc2] | 7 | { |
| [1454e00] | 8 | int global = func(); |
| [e1b39409] | 9 | int input[global]; |
| [1acabb5] | 10 | |
| 11 | for(int i = 0; i < global; i++) | |
| [da70bc2] | 12 | { |
| [1acabb5] | 13 | input[i] = i; |
| [da70bc2] | 14 | } |
| [e1b39409] | 15 | return 0; |
| [da70bc2] | 16 | } |
Note:
See TracBrowser
for help on using the repository browser.
