1// RUN: %clang_cc1 -fsyntax-only -verify %s
2// RUN: %clang_cc1 -DQUALIFIED -fsyntax-only -verify %s
3// expected-no-diagnostics
4
5// PR5904
6void f0(int *ptr) {
7#ifndef QUALIFIED
8  operator delete(ptr);
9#endif
10}
11
12void f1(int *ptr) {
13  ::operator delete[](ptr);
14}
15