File: comment-before-preprocessor-directive

package info (click to toggle)
mojoshader 0.0~hg1314%2Bdfsg-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 3,136 kB
  • sloc: ansic: 50,797; perl: 151; sh: 17; makefile: 11
file content (10 lines) | stat: -rw-r--r-- 355 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
// 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