Skip to content

Commit 8152e28

Browse files
committed
cleanup
1 parent e3b105b commit 8152e28

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

clang/test/Analysis/div-zero-cxx20.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ struct E {
2525
E(int a) : d(a) {}
2626
};
2727

28-
struct Storage {
28+
struct F {
2929
int x;
3030
};
3131

@@ -55,7 +55,7 @@ int t5() {
5555
}
5656

5757
int t6() {
58-
Storage w(32);
59-
return 1 / (w.x - 32); // expected-warning {{Division by zero}}
58+
F f(32);
59+
return 1 / (f.x - 32); // expected-warning {{Division by zero}}
6060
}
6161
} // namespace GH148875

clang/test/Analysis/div-zero.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ struct E {
3737
E(int a) : d{a} {}
3838
};
3939

40-
struct Storage {
40+
struct F {
4141
int x;
4242
};
4343

@@ -67,7 +67,7 @@ int t5() {
6767
}
6868

6969
int t6() {
70-
Storage w{32};
71-
return 1 / (w.x - 32); // expected-warning {{Division by zero}}
70+
F f{32};
71+
return 1 / (f.x - 32); // expected-warning {{Division by zero}}
7272
}
7373
}

0 commit comments

Comments
 (0)