llvm-for-llvmta/tools/clang/test/SemaCXX/PR8012.cpp

4 lines
148 B
C++
Raw Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11
void foo(int operator+); // expected-error{{'operator+' cannot be the name of a parameter}}