repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git]
/
clang
/
test
/
SemaCXX
/
new-delete-predefined-decl-2.cpp
blob
c2dfc77d01fba01a6a17a60e904378eb6fd68fb3
1
// RUN: %clang_cc1 -fsyntax-only -verify %s
2
// RUN: %clang_cc1 -DQUALIFIED -fsyntax-only -verify %s
3
// expected-no-diagnostics
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
}