Douglas Gregor | b5b2ccb | 2010-03-24 05:07:21 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
2 | // RUN: %clang_cc1 -DQUALIFIED -fsyntax-only -verify %s | ||||
Andy Gibbs | 8e8fb3b | 2012-10-19 12:44:48 +0000 | [diff] [blame] | 3 | // expected-no-diagnostics |
Douglas Gregor | b5b2ccb | 2010-03-24 05:07:21 +0000 | [diff] [blame] | 4 | |
5 | // PR5904 | ||||
6 | void f0(int *ptr) { | ||||
7 | #ifndef QUALIFIED | ||||
8 | operator delete(ptr); | ||||
9 | #endif | ||||
10 | } | ||||
11 | |||||
12 | void f1(int *ptr) { | ||||
13 | ::operator delete[](ptr); | ||||
14 | } |