Debian Codegraph @

clang/test/SemaCXX/placement-new-ms-__noop.cpp

raw
1 // RUN: %clang_cc1 -fsyntax-only -fms-extensions -verify %s -std=c++11
2 // expected-no-diagnostics
3
4 struct S {
5 void* operator new(__SIZE_TYPE__, int);
6 };
7
8 int main() {
9 // MSVC supports __noop with no arguments or (), so we do as well.
10 new (__noop) S;
11 new ((__noop)) S;
12 }