aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/compound-assign-overflow.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/compound-assign-overflow.c')
-rw-r--r--test/CodeGen/compound-assign-overflow.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/CodeGen/compound-assign-overflow.c b/test/CodeGen/compound-assign-overflow.c
index f126bb05d53c..92ae249eb9ff 100644
--- a/test/CodeGen/compound-assign-overflow.c
+++ b/test/CodeGen/compound-assign-overflow.c
@@ -25,11 +25,9 @@ void compaddunsigned() {
// CHECK: @__ubsan_handle_add_overflow(i8* bitcast ({{.*}} @[[LINE_200]] to i8*), {{.*}})
}
-int8_t a, b;
-
// CHECK: @compdiv
void compdiv() {
#line 300
- a /= b;
+ x /= x;
// CHECK: @__ubsan_handle_divrem_overflow(i8* bitcast ({{.*}} @[[LINE_300]] to i8*), {{.*}})
}