5
5
// RUN: %t 8
6
6
// RUN: not %t 9 2>&1 | FileCheck --check-prefix=CHECK-9 %s
7
7
// RUN: not %t 10 2>&1 | FileCheck --check-prefix=CHECK-10 %s
8
+ // RUN: not %t 30 2>&1 | FileCheck --check-prefix=CHECK-30 %s
9
+ // RUN: not %t 31 2>&1 | FileCheck --check-prefix=CHECK-31 %s
10
+ // RUN: not %t 41 2>&1 | FileCheck --check-prefix=CHECK-41 %s
11
+ // RUN: not %t 42 2>&1 | FileCheck --check-prefix=CHECK-42 %s
8
12
// RUN: not %t 62 2>&1 | FileCheck --check-prefix=CHECK-62 %s
9
13
// RUN: not %t 63 2>&1 | FileCheck --check-prefix=CHECK-63 %s
10
- // RUN: not %t 63 2>&1 | FileCheck --check-prefix=CHECK-63 %s
11
14
// RUN: not %t 73 2>&1 | FileCheck --check-prefix=CHECK-73 %s
12
15
// RUN: not %t 74 2>&1 | FileCheck --check-prefix=CHECK-74 %s
13
- // RUN: not %t 126 2>&1 | FileCheck --check-prefix=CHECK-126 %s
14
- // RUN: not %t 127 2>&1 | FileCheck --check-prefix=CHECK-127 %s
15
- // RUN: not %t 137 2>&1 | FileCheck --check-prefix=CHECK-137 %s
16
- // RUN: not %t 138 2>&1 | FileCheck --check-prefix=CHECK-138 %s
17
16
#include < string.h>
18
17
#include < stdio.h>
19
18
#include < stdlib.h>
@@ -31,15 +30,15 @@ int main(int argc, char **argv) {
31
30
// make sure BBB and CCC are not removed;
32
31
return *(short *)(p) + BBB[argc % 2 ] + CCC[argc % 2 ];
33
32
}
34
- // CHECK-m2: 'AAA' <== Memory access at offset 30 underflows this variable
35
- // CHECK-m1: 'AAA' <== Memory access at offset 31 partially underflows this variable
36
- // CHECK-9: 'AAA' <== Memory access at offset 41 partially overflows this variable
37
- // CHECK-10: 'AAA' <== Memory access at offset 42 overflows this variable
38
- // CHECK-62: 'BBB' <== Memory access at offset 94 underflows this variable
39
- // CHECK-63: 'BBB' <== Memory access at offset 95 partially underflows this variable
40
- // CHECK-73: 'BBB' <== Memory access at offset 105 partially overflows this variable
41
- // CHECK-74: 'BBB' <== Memory access at offset 106 overflows this variable
42
- // CHECK-126 : 'CCC' <== Memory access at offset 158 underflows this variable
43
- // CHECK-127 : 'CCC' <== Memory access at offset 159 partially underflows this variable
44
- // CHECK-137 : 'CCC' <== Memory access at offset 169 partially overflows this variable
45
- // CHECK-138 : 'CCC' <== Memory access at offset 170 overflows this variable
33
+ // CHECK-m2: 'AAA' <== {{.*}} underflows this variable
34
+ // CHECK-m1: 'AAA' <== {{.*}} partially underflows this variable
35
+ // CHECK-9: 'AAA' <== {{.*}} partially overflows this variable
36
+ // CHECK-10: 'AAA' <== {{.*}} overflows this variable
37
+ // CHECK-30: 'BBB' <== {{.*}} underflows this variable
38
+ // CHECK-31: 'BBB' <== {{.*}} partially underflows this variable
39
+ // CHECK-41: 'BBB' <== {{.*}} partially overflows this variable
40
+ // CHECK-42: 'BBB' <== {{.*}} overflows this variable
41
+ // CHECK-62 : 'CCC' <== {{.*}} underflows this variable
42
+ // CHECK-63 : 'CCC' <== {{.*}} partially underflows this variable
43
+ // CHECK-73 : 'CCC' <== {{.*}} partially overflows this variable
44
+ // CHECK-74 : 'CCC' <== {{.*}} overflows this variable
0 commit comments