Aaron Ballman | 324fbee | 2013-05-30 01:55:39 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -fms-compatibility -fsyntax-only -verify %s |
2 | // expected-no-diagnostics | ||||
3 | |||||
4 | struct arbitrary_t {} arbitrary; | ||||
5 | void *operator new(unsigned int size, arbitrary_t); | ||||
6 | |||||
7 | void f() { | ||||
8 | // Expect no error in MSVC compatibility mode | ||||
9 | int *p = new(arbitrary) int[4]; | ||||
10 | } |