Skip to content

Commit 3502827

Browse files
committed
Format test file
1 parent 2a22a4e commit 3502827

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

libcxx/test/std/language.support/support.dynamic/ptr.launder/launder.types.verify.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@
2020

2121
void foo() {}
2222

23-
int main(int, char**)
24-
{
25-
void *p = nullptr;
26-
(void) std::launder(( void *) nullptr);
27-
(void) std::launder((const void *) nullptr);
28-
(void) std::launder(( volatile void *) nullptr);
29-
(void) std::launder((const volatile void *) nullptr); // expected-error-re@*:* 4 {{static assertion failed{{.*}}can't launder cv-void}}
30-
// expected-error@*:* 0-4 {{void pointer argument to '__builtin_launder' is not allowed}}
31-
32-
(void) std::launder(foo); // expected-error-re@*:* 1 {{static assertion failed{{.*}}can't launder functions}}
33-
// expected-error@*:* 0-1 {{function pointer argument to '__builtin_launder' is not allowed}}
23+
int main(int, char**) {
24+
void* p = nullptr;
25+
(void)std::launder((void*)nullptr);
26+
(void)std::launder((const void*)nullptr);
27+
(void)std::launder((volatile void*)nullptr);
28+
(void)std::launder(
29+
(const volatile void*)nullptr); // expected-error-re@*:* 4 {{static assertion failed{{.*}}can't launder cv-void}}
30+
// expected-error@*:* 0-4 {{void pointer argument to '__builtin_launder' is not allowed}}
31+
32+
(void)std::launder(foo); // expected-error-re@*:* 1 {{static assertion failed{{.*}}can't launder functions}}
33+
// expected-error@*:* 0-1 {{function pointer argument to '__builtin_launder' is not allowed}}
3434

3535
return 0;
3636
}

0 commit comments

Comments
 (0)