source: CIVL/examples/translation/opencl/ctx.cvl@ 50f834b

1.23 2.0 acw/focus-triggers main test-branch
Last change on this file since 50f834b was 0744ab0, checked in by Jacob Trieu <fuufusuu@…>, 12 years ago

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

  • Property mode set to 100644
File size: 197 bytes
RevLine 
[00dbbe9]1
2
[0744ab0]3#include <stdlib.h>
[00dbbe9]4
[ed62ba1a]5typedef struct
6{
7 int yes;
8 int *no;
9}
[00dbbe9]10*cl_context;
11
12
13void main()
14{
[ed62ba1a]15 cl_context ctx;
16
17 int x = 5;
18 int *y = &x;
[00dbbe9]19
[0744ab0]20 ctx->yes = *y;
[ed62ba1a]21 //ctx->no = y;
[00dbbe9]22
23}
24
Note: See TracBrowser for help on using the repository browser.