xref: /llvm-project/clang/test/SemaCXX/placement-new-ms-__noop.cpp (revision af0ee617fc5f69051297b0c23f8c818b20f02c3a)
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 
main()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 }
13