mesa/src/compiler/glsl/glcpp/tests
Vlad Golovkin 1ff1dc1c63 glsl/glcpp: Handle hex constants with 0X prefix
GLSL 4.6 spec describes hex constant as:

hexadecimal-constant:
    0x hexadecimal-digit
    0X hexadecimal-digit
    hexadecimal-constant hexadecimal-digit

Right now if you have a shader with the following structure:

    #if 0X1 // or any hex number with the 0X prefix
    // some code
    #endif

the code between #if and #endif gets removed because the checking is performed
only for "0x" prefix which results in strtoll being called with the base 8 and
after encountering the 'X' char the strtoll returns 0. Letting strtoll detect
the base makes this limitation go away and also makes code easier to read.

From the strtoll Linux man page:

"If base is zero or 16, the string may then include a "0x" prefix, and the
number will be read in base 16; otherwise, a zero base is taken as 10 (decimal)
unless the next character is '0', in which case it is taken as 8 (octal)."

This matches the behaviour in the GLSL spec.

This patch also adds a test for uppercase hex prefix.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
2018-04-24 09:55:05 +10:00
..
.gitignore glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
000-content-with-spaces.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
000-content-with-spaces.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
001-define.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
001-define.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
002-define-chain.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
002-define-chain.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
003-define-chain-reverse.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
003-define-chain-reverse.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
004-define-recursive.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
004-define-recursive.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
005-define-composite-chain.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
005-define-composite-chain.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
006-define-composite-chain-reverse.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
006-define-composite-chain-reverse.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
007-define-composite-recursive.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
007-define-composite-recursive.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
008-define-empty.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
008-define-empty.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
009-undef.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
009-undef.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
010-undef-re-define.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
010-undef-re-define.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
011-define-func-empty.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
011-define-func-empty.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
012-define-func-no-args.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
012-define-func-no-args.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
013-define-func-1-arg-unused.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
013-define-func-1-arg-unused.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
014-define-func-2-arg-unused.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
014-define-func-2-arg-unused.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
015-define-object-with-parens.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
015-define-object-with-parens.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
016-define-func-1-arg.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
016-define-func-1-arg.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
017-define-func-2-args.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
017-define-func-2-args.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
018-define-func-macro-as-parameter.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
018-define-func-macro-as-parameter.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
019-define-func-1-arg-multi.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
019-define-func-1-arg-multi.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
020-define-func-2-arg-multi.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
020-define-func-2-arg-multi.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
021-define-func-compose.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
021-define-func-compose.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
022-define-func-arg-with-parens.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
022-define-func-arg-with-parens.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
023-define-extra-whitespace.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
023-define-extra-whitespace.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
024-define-chain-to-self-recursion.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
024-define-chain-to-self-recursion.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
025-func-macro-as-non-macro.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
025-func-macro-as-non-macro.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
026-define-func-extra-newlines.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
026-define-func-extra-newlines.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
027-define-chain-obj-to-func.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
027-define-chain-obj-to-func.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
028-define-chain-obj-to-non-func.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
028-define-chain-obj-to-non-func.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
029-define-chain-obj-to-func-with-args.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
029-define-chain-obj-to-func-with-args.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
030-define-chain-obj-to-func-compose.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
030-define-chain-obj-to-func-compose.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
031-define-chain-func-to-func-compose.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
031-define-chain-func-to-func-compose.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
032-define-func-self-recurse.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
032-define-func-self-recurse.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
033-define-func-self-compose.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
033-define-func-self-compose.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
034-define-func-self-compose-non-func.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
034-define-func-self-compose-non-func.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
035-define-func-self-compose-non-func-multi-token-argument.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
035-define-func-self-compose-non-func-multi-token-argument.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
036-define-func-non-macro-multi-token-argument.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
036-define-func-non-macro-multi-token-argument.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
037-finalize-unexpanded-macro.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
037-finalize-unexpanded-macro.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
038-func-arg-with-commas.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
038-func-arg-with-commas.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
039-func-arg-obj-macro-with-comma.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
039-func-arg-obj-macro-with-comma.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
040-token-pasting.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
040-token-pasting.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
041-if-0.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
041-if-0.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
042-if-1.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
042-if-1.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
043-if-0-else.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
043-if-0-else.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
044-if-1-else.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
044-if-1-else.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
045-if-0-elif.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
045-if-0-elif.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
046-if-1-elsif.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
046-if-1-elsif.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
047-if-elif-else.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
047-if-elif-else.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
048-if-nested.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
048-if-nested.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
049-if-expression-precedence.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
049-if-expression-precedence.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
050-if-defined.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
050-if-defined.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
051-if-relational.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
051-if-relational.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
052-if-bitwise.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
052-if-bitwise.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
053-if-divide-and-shift.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
053-if-divide-and-shift.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
054-if-with-macros.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
054-if-with-macros.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
055-define-chain-obj-to-func-parens-in-text.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
055-define-chain-obj-to-func-parens-in-text.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
056-macro-argument-with-comma.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
056-macro-argument-with-comma.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
057-empty-arguments.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
057-empty-arguments.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
058-token-pasting-empty-arguments.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
058-token-pasting-empty-arguments.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
059-token-pasting-integer.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
059-token-pasting-integer.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
060-left-paren-in-macro-right-paren-in-text.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
060-left-paren-in-macro-right-paren-in-text.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
061-define-chain-obj-to-func-multi.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
061-define-chain-obj-to-func-multi.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
062-if-0-skips-garbage.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
062-if-0-skips-garbage.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
063-comments.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
063-comments.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
064-version.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
064-version.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
065-if-defined-parens.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
065-if-defined-parens.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
066-if-nospace-expression.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
066-if-nospace-expression.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
067-nested-ifdef-ifndef.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
067-nested-ifdef-ifndef.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
068-accidental-pasting.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
068-accidental-pasting.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
069-repeated-argument.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
069-repeated-argument.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
070-undefined-macro-in-expression.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
070-undefined-macro-in-expression.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
071-punctuator.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
071-punctuator.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
072-token-pasting-same-line.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
072-token-pasting-same-line.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
073-if-in-ifdef.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
073-if-in-ifdef.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
074-elif-undef.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
074-elif-undef.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
075-elif-elif-undef.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
075-elif-elif-undef.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
076-elif-undef-nested.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
076-elif-undef-nested.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
077-else-without-if.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
077-else-without-if.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
078-elif-without-if.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
078-elif-without-if.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
079-endif-without-if.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
079-endif-without-if.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
080-if-without-expression.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
080-if-without-expression.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
081-elif-without-expression.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
081-elif-without-expression.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
082-invalid-paste.c glcpp: Remove illegal characters from tests 2017-01-04 14:40:48 -08:00
082-invalid-paste.c.expected glcpp: Remove illegal characters from tests 2017-01-04 14:40:48 -08:00
083-unterminated-if.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
083-unterminated-if.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
084-unbalanced-parentheses.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
084-unbalanced-parentheses.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
085-incorrect-argument-count.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
085-incorrect-argument-count.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
086-reserved-macro-names.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
086-reserved-macro-names.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
087-if-comments.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
087-if-comments.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
088-redefine-macro-legitimate.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
088-redefine-macro-legitimate.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
089-redefine-macro-error.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
089-redefine-macro-error.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
090-hash-error.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
090-hash-error.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
091-hash-line.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
091-hash-line.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
092-redefine-macro-error-2.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
092-redefine-macro-error-2.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
093-divide-by-zero.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
093-divide-by-zero.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
094-divide-by-zero-short-circuit.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
094-divide-by-zero-short-circuit.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
095-recursive-define.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
095-recursive-define.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
096-paste-twice.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
096-paste-twice.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
097-paste-with-non-function-macro.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
097-paste-with-non-function-macro.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
098-elif-undefined.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
098-elif-undefined.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
099-c99-example.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
099-c99-example.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
100-macro-with-colon.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
100-macro-with-colon.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
101-macros-used-twice.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
101-macros-used-twice.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
102-garbage-after-endif.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
102-garbage-after-endif.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
103-garbage-after-else-0.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
103-garbage-after-else-0.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
104-hash-line-followed-by-code.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
104-hash-line-followed-by-code.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
105-multiline-hash-line.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
105-multiline-hash-line.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
106-multiline-hash-if.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
106-multiline-hash-if.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
107-multiline-hash-elif.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
107-multiline-hash-elif.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
108-no-space-after-hash-version.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
108-no-space-after-hash-version.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
109-no-space-after-hash-line.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
109-no-space-after-hash-line.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
110-no-space-digits-after-hash-elif.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
110-no-space-digits-after-hash-elif.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
111-no-space-operator-after-hash-if.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
111-no-space-operator-after-hash-if.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
112-no-space-operator-after-hash-elif.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
112-no-space-operator-after-hash-elif.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
113-line-and-file-macros.c glcpp: Remove illegal characters from tests 2017-01-04 14:40:48 -08:00
113-line-and-file-macros.c.expected glcpp: Remove illegal characters from tests 2017-01-04 14:40:48 -08:00
114-paste-integer-tokens.c glcpp: Remove illegal characters from tests 2017-01-04 14:40:48 -08:00
114-paste-integer-tokens.c.expected glcpp: Remove illegal characters from tests 2017-01-04 14:40:48 -08:00
115-line-continuations.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
115-line-continuations.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
116-disable-line-continuations.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
116-disable-line-continuations.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
117-line-continuation-and-non-continuation-backslash.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
117-line-continuation-and-non-continuation-backslash.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
118-comment-becomes-space.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
118-comment-becomes-space.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
119-elif-after-else.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
119-elif-after-else.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
120-undef-builtin.c glcpp: Update tests for new #undef of built-in macro rules. 2016-08-15 22:55:34 -07:00
120-undef-builtin.c.expected Fix glcpp test expectations 2017-06-08 09:46:36 +02:00
121-comment-bug-72686.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
121-comment-bug-72686.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
122-redefine-whitespace.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
122-redefine-whitespace.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
123-garbage-after-else-1.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
123-garbage-after-else-1.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
124-preprocessing-numbers.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
124-preprocessing-numbers.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
125-es-short-circuit-undefined.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
125-es-short-circuit-undefined.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
126-garbage-after-directive.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
126-garbage-after-directive.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
127-pragma-empty.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
127-pragma-empty.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
128-space-before-hash.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
128-space-before-hash.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
129-define-non-identifier.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
129-define-non-identifier.c.expected glcpp: Remove empty mid-rule action which changes test behavior. 2016-03-07 23:02:05 -08:00
130-define-comment.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
130-define-comment.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
131-eof-without-newline.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
131-eof-without-newline.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
132-eof-without-newline-define.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
132-eof-without-newline-define.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
133-eof-without-newline-comment.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
133-eof-without-newline-comment.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
134-hash-comment-directive.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
134-hash-comment-directive.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
135-duplicate-parameter.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
135-duplicate-parameter.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
136-plus-plus-and-minus-minus.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
136-plus-plus-and-minus-minus.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
137-expand-macro-after-period.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
137-expand-macro-after-period.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
138-multi-line-comment-in-if-0.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
138-multi-line-comment-in-if-0.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
139-define-without-macro-name.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
139-define-without-macro-name.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
140-null-directive.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
140-null-directive.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
141-pragma-and-__LINE__.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
141-pragma-and-__LINE__.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
142-defined-within-macro.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
142-defined-within-macro.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
143-multiple-else.c glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
143-multiple-else.c.expected glsl: move to compiler/ 2016-01-26 16:08:33 +00:00
144-implicit-version.c glcpp: Implicitly resolve version after the first non-space/hash token. 2016-03-07 23:01:43 -08:00
144-implicit-version.c.expected glcpp: Implicitly resolve version after the first non-space/hash token. 2016-03-07 23:01:43 -08:00
145-version-first.c glcpp: Implicitly resolve version after the first non-space/hash token. 2016-03-07 23:01:43 -08:00
145-version-first.c.expected glcpp: Implicitly resolve version after the first non-space/hash token. 2016-03-07 23:01:43 -08:00
146-version-first-hash.c glcpp: Implicitly resolve version after the first non-space/hash token. 2016-03-07 23:01:43 -08:00
146-version-first-hash.c.expected glcpp: Fix locations when encounting "#<NEWLINE>". 2016-03-10 11:23:26 -08:00
147-define-macro-no-space.c glcpp: Add testing for no space between macro name and replacement list 2017-01-04 14:40:48 -08:00
147-define-macro-no-space.c.expected glcpp: Add testing for no space between macro name and replacement list 2017-01-04 14:40:48 -08:00
147-undef-builtin-allowed.c glcpp: Update tests for new #undef of built-in macro rules. 2016-08-15 22:55:34 -07:00
147-undef-builtin-allowed.c.expected Fix glcpp test expectations 2017-06-08 09:46:36 +02:00
148-legal-characters.c glcpp: Exhaustively test all legal characters in GLSL 2017-01-04 14:40:48 -08:00
148-legal-characters.c.expected glcpp: Exhaustively test all legal characters in GLSL 2017-01-04 14:40:48 -08:00
149-hex-const-uppercase-prefix.c glsl/glcpp: Handle hex constants with 0X prefix 2018-04-24 09:55:05 +10:00
149-hex-const-uppercase-prefix.c.expected glsl/glcpp: Handle hex constants with 0X prefix 2018-04-24 09:55:05 +10:00
glcpp-test-cr-lf.sh glcpp/tests: Convert shell scripts to a python script 2018-04-18 09:03:57 -07:00
glcpp-test.sh glcpp/tests: Convert shell scripts to a python script 2018-04-18 09:03:57 -07:00
glcpp_test.py compiler/glsl: close fd's in glcpp_test.py 2018-04-23 09:55:17 -07:00