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