Skip to content

Commit 3f4a9ce

Browse files
committed
clang-format
1 parent dcd3304 commit 3f4a9ce

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

compiler-rt/test/asan/TestCases/fakestack_alignment2.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
#include <string.h>
99

1010
struct alignas(4096) page {
11-
int x;
11+
int x;
1212
};
1313

14-
void *Thread(void *unused) {
14+
void *Thread(void *unused) {
1515
page p1;
1616
uint alignment = (unsigned long)&p1 % alignof(page);
17-
printf ("Thread: address modulo alignment is %u\n", alignment);
17+
printf("Thread: address modulo alignment is %u\n", alignment);
1818
assert(alignment == 0);
1919

2020
return NULL;
@@ -26,7 +26,7 @@ int main(int argc, char **argv) {
2626

2727
// When the stack size is 1<<16, FakeStack's GetFrame() is out of alignment,
2828
// because SizeRequiredForFlags(16) == 2K.
29-
pthread_attr_setstacksize(&attr, 1<<16);
29+
pthread_attr_setstacksize(&attr, 1 << 16);
3030

3131
pthread_t t;
3232
pthread_create(&t, &attr, Thread, 0);

0 commit comments

Comments
 (0)