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
/
preprocess4.frag
blob
c19fc91dac41e6f19328992d7d4f376de0dfb9d4
1
// #error and #pragma directives -- test cases.
\r
2
// tests for errors in #pragma directive.
\r
3
\r
4
#pragma optimize(on)
\r
5
#pragma debug(off)
\r
6
\r
7
int foo(int);
\r
8
\r
9
void main(void)
\r
10
{
\r
11
int sum =0;
\r
12
#error ;
\r
13
#error 78
\r
14
#error c
\r
15
#error "message to the user "
\r
16
#error message to the user
\r
17
#error
\r
18
#error
\r
19
#define t1 1
\r
20
sum = t1*t1;
\r
21
foo(sum);
\r
22
\r
23
}
\r
24
\r
25
#pragma optimize(off)
\r
26
#pragma bind(on)
\r
27
#pragma pack(off)
\r
28
\r
29
int foo(int test)
\r
30
{
\r
31
int binding=0;
\r
32
binding = test;
\r
33
return binding;
\r
34
}
\r
35
\r
36
#line 4
\r
37
#pragma
\r
38
#line 5 6
\r
39
#pragma optmimize on
\r
40
#pragma debug off
\r
41
#pragma debug(off
\r
42
#line 9
\r
43
#prgma bind(off)
\r
44
#pragma bind
\r
45
#pragma (on)
\r
46
#pragma on (on)
\r
47
#pragma optmize(on
\r
48
\r
49
\r