• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 
3 struct A {
4   void operator delete(void*);
5 };
6 
7 namespace NS {
8   void operator delete(void *); // expected-error {{'operator delete' cannot be declared inside a namespace}}
9 }
10 
11 static void operator delete(void *); // expected-error {{'operator delete' cannot be declared static in global scope}}
12