Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(356)

Side by Side Diff: conformance/ogles/GL/build/preprocess0_frag.frag

Issue 41993002: Add ToT WebGL conformance tests : part 9 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/webgl/sdk/tests/
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1
2 /*
3 ** Copyright (c) 2012 The Khronos Group Inc.
4 **
5 ** Permission is hereby granted, free of charge, to any person obtaining a
6 ** copy of this software and/or associated documentation files (the
7 ** "Materials"), to deal in the Materials without restriction, including
8 ** without limitation the rights to use, copy, modify, merge, publish,
9 ** distribute, sublicense, and/or sell copies of the Materials, and to
10 ** permit persons to whom the Materials are furnished to do so, subject to
11 ** the following conditions:
12 **
13 ** The above copyright notice and this permission notice shall be included
14 ** in all copies or substantial portions of the Materials.
15 **
16 ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17 ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19 ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20 ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21 ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22 ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
23 */
24
25
26 #ifdef GL_ES
27 precision mediump float;
28 #endif
29 //test for else elif mismatch
30 #define test(x,y) (x+y)
31
32 void main(void){
33 int sum =0;
34 #define x 8
35 #endif
36 #if (x==8)
37 #undef x
38 #endif
39
40 #if 1
41 #undef x
42 #endif
43
44 #if 1
45 #define t4 4
46 #endif
47
48 sum=test(3,6)+t4;
49 #if 1
50 #if 1
51 #if 1
52 #if 1
53 #if 0
54 #undef test
55 #else
56 #if 1
57 #undef test
58 #endif
59 #if 0
60 #undef test
61 #else
62 #if 0
63 #undef test
64 #else
65 #if 1
66 #undef test
67 #else
68 #undef test
69 #else
70 #jdhgj
71 #endif
72 #endif
73 #endif
74 #endif
75 #endif
76 #endif
77 #endif
78 #endif
79
80 }
OLDNEW
« no previous file with comments | « conformance/ogles/GL/build/parser9_frag.frag ('k') | conformance/ogles/GL/build/preprocess10_frag.frag » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698