blob: 1a1ffc7ba2e82248912840dc2b88d5b065a1f92e [file] [log] [blame]
// RUN: %clang_cc1 -verify -std=c++20 -Wall %s
// RUN: cp %s %t
// RUN: %clang_cc1 -x c++ -std=c++20 -fixit %t
// RUN: %clang_cc1 -Wall -Werror -x c++ -std=c++20 %t
// RUN: cat %t | FileCheck %s
namespace std {
int &&move(auto &&a) { return a; }
int &&forward(auto &a) { return a; }
} // namespace std
using namespace std;
void f() {
int i = 0;
(void)move(i); // expected-warning {{unqualified call to 'std::move}}
// CHECK: {{^}} (void)std::move
(void)forward(i); // expected-warning {{unqualified call to 'std::forward}}
// CHECK: {{^}} (void)std::forward
}