# Check basic lexing functionality.
#
# RUN: %{llbuild} ninja %s 2> %t.err
# RUN: %{FileCheck} < %t.err %s

# CHECK: (Token "Comment" String:{{.*}} Length:70 Line:[[@LINE+1]] Column:0)
# This is a 70 character comment (which does not include the newline).

# CHECK: (Token "Colon" String:":" Length:1 Line:[[@LINE+1]] Column:0)
:

# CHECK: (Token "Pipe" String:"|" Length:1 Line:[[@LINE+1]] Column:0)
|

# CHECK: (Token "PipePipe" String:"||" Length:2 Line:[[@LINE+1]] Column:0)
||

# CHECK: (Token "EndOfFile" String:{{.*}} Length:0 Line:[[@LINE+1]] Column:0)

# Check basic lexing functionality.
#
# RUN: %{llbuild} ninja lex %s 2> %t.err
# RUN: %{FileCheck} < %t.err %s

# CHECK: (Token "Comment" String:{{.*}} Length:70 Line:[[@LINE+1]] Column:0)
# This is a 70 character comment (which does not include the newline).

# CHECK: (Token "Colon" String:":" Length:1 Line:[[@LINE+1]] Column:0)
:

# CHECK: (Token "Pipe" String:"|" Length:1 Line:[[@LINE+1]] Column:0)
|

# CHECK: (Token "PipePipe" String:"||" Length:2 Line:[[@LINE+1]] Column:0)
||

# CHECK: (Token "EndOfFile" String:{{.*}} Length:0 Line:[[@LINE+1]] Column:0)
