Add preprocessor "defined" operator corner cases
authorOlli Etuaho <oetuaho@nvidia.com>
Mon, 28 Sep 2015 08:08:52 +0000 (11:08 +0300)
committerPyry Haulos <phaulos@google.com>
Tue, 29 Sep 2015 22:28:21 +0000 (15:28 -0700)
commit644d6cf0d5f53381c03061c4a8a59ff68c412363
treec6391b27f8415e9cd12f5c75fae5c6520a1ab8fa
parent4174d1d7a79cc7d36debf527112f26a3e8f22a87
Add preprocessor "defined" operator corner cases

The GLES3 shader tests have already required "defined" operator generated
by macro replacement to work. This is not specified by the C++ standard,
and has some corner cases where implementations might differ. Test the
corner cases to ensure fully compatible implementations.

These cases were already tested against some existing implementations on
Nexus devices, and the implementations mostly passed.

Change-Id: Ic54afc9436bb2ad2d7bfc7dc1e1833f700d3ca49
data/gles3/shaders/preprocessor.test