1 // RUN: %clang_cc1 -fms-compatibility -fsyntax-only -verify %s 2 // expected-no-diagnostics 3 4 #include <stddef.h> 5 6 struct arbitrary_t {} arbitrary; 7 void *operator new(size_t size, arbitrary_t); 8 9 void f() { 10 // Expect no error in MSVC compatibility mode 11 int *p = new(arbitrary) int[4]; 12 } 13