blob: 90b42edb18f9dd7ca0e8d4591d3993f0c41b1b26 [file] [log] [blame]
Aaron Ballman324fbee2013-05-30 01:55:39 +00001// RUN: %clang_cc1 -fms-compatibility -fsyntax-only -verify %s
2// expected-no-diagnostics
3
4struct arbitrary_t {} arbitrary;
5void *operator new(unsigned int size, arbitrary_t);
6
7void f() {
8 // Expect no error in MSVC compatibility mode
9 int *p = new(arbitrary) int[4];
10}