[Piglit] [PATCH 2/2] glsl-4.60: add a test that allows extra semicolons at global scope

Samuel Pitoiset samuel.pitoiset at gmail.com
Fri Aug 11 06:55:00 UTC 2017



On 08/10/2017 07:04 PM, Ilia Mirkin wrote:
> And an identical test to make sure it's disallowed at earlier GLSL
> versions? I see no such test already.

I can do that yeah.

> 
> On Thu, Aug 10, 2017 at 12:44 PM, Samuel Pitoiset
> <samuel.pitoiset at gmail.com> wrote:
>> Cc: Ian Romanick <ian.d.romanick at intel.com>
>> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
>> ---
>>   .../compiler/extra-semilons-at-global-scope.frag        | 17 +++++++++++++++++
>>   1 file changed, 17 insertions(+)
>>   create mode 100644 tests/spec/glsl-4.60/compiler/extra-semilons-at-global-scope.frag
>>
>> diff --git a/tests/spec/glsl-4.60/compiler/extra-semilons-at-global-scope.frag b/tests/spec/glsl-4.60/compiler/extra-semilons-at-global-scope.frag
>> new file mode 100644
>> index 000000000..9da6ade08
>> --- /dev/null
>> +++ b/tests/spec/glsl-4.60/compiler/extra-semilons-at-global-scope.frag
>> @@ -0,0 +1,17 @@
>> +// [config]
>> +// expect_result: pass
>> +// glsl_version: 4.60
>> +// [end config]
>> +
>> +#version 460
>> +
>> +// From the GLSL 4.60 spec, section 1.2.1 (Summary of Changes from Revision 7
>> +// of GLSL Version 4.50):
>> +//
>> +//  "Private Bug 16070: Allow extra semi-colons at global scope"
>> +
>> +uniform int i;;
>> +
>> +void main()
>> +{
>> +}
>> --
>> 2.14.0
>>
>> _______________________________________________
>> Piglit mailing list
>> Piglit at lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/piglit


More information about the Piglit mailing list