]>
git.proxmox.com Git - rustc.git/blob - src/llvm/tools/clang/test/SemaCXX/new-delete-predefined-decl.cpp
1 // RUN: %clang_cc1 -DTEMPLATE_OVERLOAD -fsyntax-only -verify %s
2 // RUN: %clang_cc1 -fsyntax-only -verify %s
6 // Note that each test must be run separately so it can be the first operator
7 // new declaration in the file.
9 #if defined(TEMPLATE_OVERLOAD)
10 // Don't crash on global template operator new overloads.
11 template<typename T
> void* operator new(size_t, T
);
12 void test_template_overload() {
17 void test_predefined() {