[PATCH] D99225: [clang] cxx tests: cleanup, update and add some new ones

Matheus Izvekov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 23 17:09:27 PDT 2021


mizvekov added inline comments.


================
Comment at: clang/test/CXX/drs/dr3xx.cpp:444
   void f(volatile void); // expected-error {{'void' as parameter must not have type qualifiers}}
+  // cxx20_2b-warning at -1 {{volatile-qualified parameter type 'volatile void' is deprecated}}
   void g(const void); // expected-error {{'void' as parameter must not have type qualifiers}}
----------------
mizvekov wrote:
> Quuxplusone wrote:
> > This gives an error //and// a C++20 warning? 😛
> > Oh yeah. Huh. https://godbolt.org/z/eMY9zMs54 That's definitely a Clang bug. Feel like filing it?
> heh, no problem.
https://bugs.llvm.org/show_bug.cgi?id=49703


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D99225/new/

https://reviews.llvm.org/D99225



More information about the cfe-commits mailing list