skia2/resources/sksl/errors/BadModifiers.sksl
John Stiles a456175a07 Add expected errors to every test file.
This was (crudely) automated with shell scripts:
http://go/paste/5484300603490304

Change-Id: Ic9e1c93112772d303d1158eb26d995f27b439eba
Bug: skia:12665
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/505637
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
2022-02-08 18:20:25 +00:00

28 lines
930 B
Plaintext

const in out uniform flat noperspective sk_has_side_effects inline noinline void func1() {}
void func2(const in out uniform flat noperspective sk_has_side_effects
inline noinline float test) {}
const in out uniform flat noperspective sk_has_side_effects inline noinline float var;
/*%%*
'const' is not permitted here
'in' is not permitted here
'out' is not permitted here
'uniform' is not permitted here
'flat' is not permitted here
'noperspective' is not permitted here
functions cannot be both 'inline' and 'noinline'
'uniform' is not permitted here
'flat' is not permitted here
'noperspective' is not permitted here
'sk_has_side_effects' is not permitted here
'inline' is not permitted here
'noinline' is not permitted here
'in uniform' variables not permitted
'sk_has_side_effects' is not permitted here
'inline' is not permitted here
'noinline' is not permitted here
'const' variables must be initialized
*%%*/