1 // RUN: %clang_analyze_cc1 -analyzer-checker=core -std=c++11 -verify %s
3 // expected-no-diagnostics
5 typedef __typeof(sizeof(int)) size_t;
7 void *operator new(size_t size
, void *ptr
);
14 virtual void foo() override
{}
18 // FIXME: Potentially warn because this code is pretty weird.
25 char c
[sizeof(D
)]; // Should be enough storage.
27 ((B
*)c
)->foo(); // no-crash