unit_tests/preprocessor/output/comment-before-preprocessor-directive
author Ethan Lee <flibitijibibo@flibitijibibo.com>
Wed, 26 Aug 2020 14:37:18 -0400
changeset 1301 79bbc92200dc
parent 1142 7b554e065321
permissions -rw-r--r--
Write locations for SPIR-V pixel shader outputs

// This shouldn't care that there's a multiline comment before a preprocessor
//  directive. It should translate to whitespace, thrown away, making the
//  "#if 1" the first thing on the line, and thus valid.
// Note that this isn't legal in C/C++ preprocessing, but Microsoft's fxc.exe
//  allows this quirk.
/* comment! */ #if 1
RIGHT
#else
WRONG
#endif