bolt/deps/llvm-18.1.8/clang/test/SemaCXX/placement-new-ms-__noop.cpp

13 lines
278 B
C++
Raw Normal View History

2025-02-14 19:21:04 +01:00
// RUN: %clang_cc1 -fsyntax-only -fms-extensions -verify %s -std=c++11
// expected-no-diagnostics
struct S {
void* operator new(__SIZE_TYPE__, int);
};
int main() {
// MSVC supports __noop with no arguments or (), so we do as well.
new (__noop) S;
new ((__noop)) S;
}