mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-24 11:36:10 +00:00
llvm-cov: Prevent a test from matching its own check lines
Since llvm-cov shows the source file in its output, be careful about potentially matching the check lines themselves. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218138 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0914f63cc3
commit
dcd8562eb7
Binary file not shown.
@ -16,16 +16,14 @@
|
|||||||
else \
|
else \
|
||||||
ANOTHER_THING(); \
|
ANOTHER_THING(); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
// CHECK-DAG: Expansion at line [[@LINE-4]], 7 -> 24
|
||||||
|
// CHECK-DAG: Expansion at line [[@LINE-3]], 7 -> 20
|
||||||
|
|
||||||
int main(int argc, const char *argv[]) {
|
int main(int argc, const char *argv[]) {
|
||||||
for (int i = 0; i < 100; ++i)
|
for (int i = 0; i < 100; ++i)
|
||||||
DO_SOMETHING(i);
|
DO_SOMETHING(i); // CHECK-DAG: Expansion at line [[@LINE]], 5 -> 17
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// CHECK: Expansion at line 22, 5 -> 17
|
|
||||||
// CHECK: Expansion at line 15, 7 -> 24
|
|
||||||
// CHECK: Expansion at line 17, 7 -> 20
|
|
||||||
|
|
||||||
// llvm-cov doesn't work on big endian yet
|
// llvm-cov doesn't work on big endian yet
|
||||||
// XFAIL: powerpc64-, s390x, mips-, mips64-, sparc
|
// XFAIL: powerpc64-, s390x, mips-, mips64-, sparc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user