Skip to content

Commit e8e84a7

Browse files
committed
clang-format
1 parent dad23bc commit e8e84a7

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
// RUN: %clang_min_runtime -fsanitize=alignment %s -o %t && %run %t 2>&1 | FileCheck %s --check-prefixes=CHECK
22

3-
void f(int& n) {}
3+
void f(int &n) {}
44

5-
int* t;
5+
int *t;
66

77
int main() {
8-
int r;
9-
t = (int*)(((char*)&r) + 1);
10-
// CHECK: ubsan: type-mismatch by 0x{{[[:xdigit:]]+}} address 0x{{[[:xdigit:]]+$}}
11-
// CHECK-NOT: type-mismatch
8+
int r;
9+
t = (int *)(((char *)&r) + 1);
10+
// CHECK: ubsan: type-mismatch by 0x{{[[:xdigit:]]+}} address 0x{{[[:xdigit:]]+$}}
11+
// CHECK-NOT: type-mismatch
1212

13-
f(*t);
13+
f(*t);
1414
}
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// RUN: %clang_min_runtime -fsanitize=null %s -o %t && %run %t 2>&1 | FileCheck %s --check-prefixes=CHECK
22

3-
void f(int& n) {}
3+
void f(int &n) {}
44

5-
int* t;
5+
int *t;
66

77
int main() {
8-
// CHECK: ubsan: type-mismatch by 0x{{[[:xdigit:]]+}} address 0x{{[[:xdigit:]]+$}}
9-
// CHECK-NOT: type-mismatch
10-
f(*t);
8+
// CHECK: ubsan: type-mismatch by 0x{{[[:xdigit:]]+}} address 0x{{[[:xdigit:]]+$}}
9+
// CHECK-NOT: type-mismatch
10+
f(*t);
1111
}

0 commit comments

Comments
 (0)