Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / SemaCXX / cxx2b-overloaded-operator-pedantic.cpp
blob4a39f2a6996817b8dd724b62548e9256f632beb1
1 // RUN: %clang_cc1 -verify -std=c++23 -pedantic %s
2 // RUN: %clang_cc1 -verify=compat -std=c++23 -Wpre-c++23-compat %s
4 // expected-no-diagnostics
6 struct GH61582 {
7 // We accidentally would issue this diagnostic in pedantic mode; show that we
8 // only issue it when enabling the compat warnings now.
9 void operator[](int, int); // compat-warning {{overloaded 'operator[]' with more than one parameter is a C++23 extension}}