repo.or.cz
/
piglit
/
hramrach.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add more structure constructor tests.
[piglit/hramrach.git]
/
tests
/
glslparsertest
/
shaders
/
CorrectPreprocess5.frag
blob
cb83dbad2723c1b6b0656ec06086eed1226c113c
1
//mutiple line macros - test case.
\r
2
\r
3
#define test 5
\r
4
#define t1 1
\r
5
#define t2 2
\r
6
#define token (t1+t2)
\r
7
#define test1 int sum =1;\
\r
8
sum = test;\
\r
9
sum = test+test;
\r
10
\r
11
#define test2 do{\
\r
12
test1\
\r
13
sum = sum +token;\
\r
14
sum = t2*t1;\
\r
15
}while(sum>0)
\r
16
\r
17
void main(void)
\r
18
{
\r
19
int test3=1;
\r
20
test1
\r
21
test2;
\r
22
test3 = test;
\r
23
sum = test3;
\r
24
}
\r
25
\r
26
\r