repo.or.cz
/
piglit.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
ovr_multiview: add some basic glsl tests
[piglit.git]
/
tests
/
spec
/
glsl-1.50
/
compiler
/
interface-blocks-structs-defined-within-block.vert
blob
2cacbf9487fb0cce3e18009c38fb098f0c9861b3
1
// [config]
2
// expect_result: fail
3
// glsl_version: 1.50
4
// check_link: true
5
// [end config]
6
//
7
// Tests that a struct cannot be defined within a block.
8
//
9
// GLSLangSpec.1.50.11, 4.3.7 Interface Blocks:
10
// "structure definitions cannot be nested inside a block"
11
12
#version 150
13
14
out block {
15
struct test_struct {
16
int a;
17
float b;
18
};
19
test_struct c;
20
float d;
21
} inst;
22
23
void main()
24
{
25
inst.c.a = 1;
26
inst.d = 1.0;
27
}