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