perf/pixel-rate: new pixel throughput microbenchmark
[piglit.git] / tests / spec / glsl-1.50 / compiler / interface-blocks-structs-defined-within-block-instanced.vert
blob2743d4ba69f810e020489c1579ddb824b59403fa
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"
12 #version 150
14 out block {
15         struct test_struct {
16                 int a;
17                 float b;
18         } c;
19         float d;
20 } inst;
22 void main()
24         inst.c.b = 1.0;
25         inst.d = 2.0;