================
@@ -1732,11 +1732,16 @@ namespace cwg395 { // cwg395: 3.0
 namespace cwg396 { // cwg396: 3.0
   void f() {
     auto int a();
-    // since-cxx11-error@-1 {{'auto' storage class specifier is not permitted 
in C++11, and will not be supported in future releases}}
-    // expected-error@-2 {{illegal storage class on function}}
+    // since-cxx11-error@-1 {{'auto' cannot be combined with a type specifier 
in C++}}
+#if __cplusplus < 201103L
+    // expected-error@-3 {{illegal storage class on function}}
----------------
Endilll wrote:

```suggestion
    // cxx98-error@-3 {{illegal storage class on function}}
```
which saves you from `#if __cplusplus`

https://github.com/llvm/llvm-project/pull/166004
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to