================
@@ -51,12 +51,12 @@ void pointer_to_incomplete_type() {
void function_pointer() {
{
volatile std::atomic<void (*)(int)> fun;
- // expected-error-re@*:* {{static assertion failed due to requirement
'!is_function<void (int)>::value'{{.*}}Pointer to function isn't allowed}}
+ // expected-error-re@*:* {{static assertion failed due to requirement
'!{{(std::)?}}is_function<void (int)>::value'{{.*}}Pointer to function isn't
allowed}}
std::atomic_fetch_add_explicit(&fun, 0, std::memory_order_relaxed);
}
{
std::atomic<void (*)(int)> fun;
- // expected-error-re@*:* {{static assertion failed due to requirement
'!is_function<void (int)>::value'{{.*}}Pointer to function isn't allowed}}
+ // expected-error-re@*:* {{static assertion failed due to requirement
'!{{(std::)?}}is_function<void (int)>::value'{{.*}}Pointer to function isn't
allowed}}
----------------
ldionne wrote:
```suggestion
// expected-error-re@*:* {{static assertion failed due to requirement
{{.+}}Pointer to function isn't allowed}}
```
https://github.com/llvm/llvm-project/pull/148014
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits