[llvm-branch-commits] [clang] [libcxx] [PATCH 3/7] [clang] improve NestedNameSpecifier: test changes (PR #148014)

Louis Dionne via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Aug 1 10:06:22 PDT 2025


================
@@ -48,12 +48,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_sub(&fun, 0);
   }
   {
     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


More information about the llvm-branch-commits mailing list