blob: 6578db25afe13aa82c3e30063ae5e74fa1ca9b64 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# Check sequencing operations.
#
# RUN: echo "first-line" > %t.out && echo "second-line" >> %t.out
# RUN: FileCheck --check-prefix CHECK-AND < %t.out %s
#
# CHECK-AND: first-line
# CHECK-AND: second-line
#
# The false case of && is tested in sequencing-2.txt
# RUN: echo "first-line" > %t.out || echo "second-line" >> %t.out
# RUN: FileCheck --check-prefix CHECK-OR-1 < %t.out %s
#
# CHECK-OR-1: first-line
# CHECK-OR-1-NOT: second-line
# RUN: false || echo "second-line" > %t.out
# RUN: FileCheck --check-prefix CHECK-OR-2 < %t.out %s
#
# CHECK-OR-2: second-line
# RUN: echo "first-line" > %t.out; echo "second-line" >> %t.out
# RUN: FileCheck --check-prefix CHECK-SEQ < %t.out %s
#
# CHECK-SEQ: first-line
# CHECK-SEQ: second-line
|