2024-04-12 10:19:32 +00:00
|
|
|
#RUN: %fish %s
|
2020-01-03 22:40:28 +00:00
|
|
|
|
|
|
|
function stuff --argument a b c
|
|
|
|
# This is a comment
|
|
|
|
echo stuff
|
|
|
|
# This is another comment
|
|
|
|
end
|
|
|
|
|
|
|
|
functions stuff
|
|
|
|
#CHECK: # Defined in {{.*}}
|
2024-05-06 14:50:21 +00:00
|
|
|
#CHECK: function stuff --argument-names a --argument-names b --argument-names c
|
2020-01-03 22:40:28 +00:00
|
|
|
#CHECK: # This is a comment
|
|
|
|
#CHECK: echo stuff
|
|
|
|
#CHECK: # This is another comment
|
|
|
|
#CHECK: end
|
|
|
|
|
|
|
|
function commenting
|
|
|
|
|
|
|
|
# line 2
|
|
|
|
|
|
|
|
# line 4
|
|
|
|
|
|
|
|
echo Bye bye says line 6
|
|
|
|
end
|
|
|
|
|
|
|
|
functions commenting
|
|
|
|
#CHECK: # Defined in {{.*}}
|
|
|
|
#CHECK: function commenting
|
|
|
|
#CHECK:
|
|
|
|
#CHECK: # line 2
|
|
|
|
#CHECK:
|
|
|
|
#CHECK: # line 4
|
|
|
|
#CHECK:
|
|
|
|
#CHECK: echo Bye bye says line 6
|
|
|
|
#CHECK: end
|