xref: /OpenGrok/opengrok-indexer/src/test/resources/sources/haskell/bug15890.hs (revision 2bcacabbe843448903326d34ff21a265b5f37596)
1*2bcacabbSAdam Hornacek-- -*- coding: utf-8 -*-
2*2bcacabbSAdam Hornacek
3*2bcacabbSAdam Hornacek{-
4*2bcacabbSAdam Hornacek   Test for bug #15890. Ctags and JFlex do not agree on line
5*2bcacabbSAdam Hornacek   numbering. JFlex regards \u000B, \u000C, \u0085, \u2028 and \u2029
6*2bcacabbSAdam Hornacek   as line terminator, whereas ctags doesn't. If one of these
7*2bcacabbSAdam Hornacek   characters occurred in a file, definitions that came after it would
8*2bcacabbSAdam Hornacek   not be recognized as definitions by the xrefs, since the line
9*2bcacabbSAdam Hornacek   numbers didn't match what ctags returned.
10*2bcacabbSAdam Hornacek-}
11*2bcacabbSAdam Hornacek
12*2bcacabbSAdam Hornacek-- This line contains \u000B: 
13*2bcacabbSAdam Hornacek
14*2bcacabbSAdam Hornacek-- This line contains \u000C:
15*2bcacabbSAdam Hornacek
16*2bcacabbSAdam Hornacek-- This line contains \u0085: …
17*2bcacabbSAdam Hornacek
18*2bcacabbSAdam Hornacek-- This line contains \u2028: 

19*2bcacabbSAdam Hornacek
20*2bcacabbSAdam Hornacek-- This line contains \u2029: 

21*2bcacabbSAdam Hornacek
22*2bcacabbSAdam Hornacek{-
23*2bcacabbSAdam Hornacek   Now add a definition for the tests to check.
24*2bcacabbSAdam Hornacek-}
25*2bcacabbSAdam Hornacek
26*2bcacabbSAdam Hornacekbug15890 x = x + 1
27